
- Clone repository
git clone [email protected]:sebaestel/ng-patterns.git
or use bower
bower install ng-patterns
Add dependencie in your module
angular.module('yourModule', ['ng-patterns']) ...
In view
<pattern
pattern-options="{{ data }}"
id="pattern-test">
</pattern>
In controller
$scope.data = [
{
'size': 50,
'seed': 'supercalifragilistico',
'colors': ['#e62aa2', '#f0b988']
}
];
- size: [0-9] to generate columns/row width
- seed: string to generate columns/row width
- colors: [required] color in hexadecimal into array