Angular directive
vibrant source
Restricted on
- Element
- Attribute
Dependencies:
| Name | Type | Description |
|---|---|---|
| $vibrant | service |
Attributes:
| Name | Type | Description |
|---|---|---|
| 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:
Name Type Description scope service [description]
element service [description]
attrs object [description]