Angular directive

vibrant source

Restricted on
  • Element
  • Attribute
Dependencies:
NameTypeDescription
$vibrant service
Attributes:
NameTypeDescription
ng-model object
url string

The url to load

swatch string

The Swatch to bind to the model (Vibrant, Muted, DarkVibrant, DarkMuted, LightVibrant, LightMuted)

quality int

Overrides the quality used for palette generation. 0 is highest

colors int

Overrides the amount of initial colors used for palette generation

Methods

link (scope, element, attrs)

The link function for the vibrant directive

Parameters:
NameTypeDescription
scope service

[description]

element service

[description]

attrs object

[description]