Skip to content

sebaestel/ng-patterns

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ng-pattern

alt tag Angular directive to create basic patterns using d3

Install

  • Clone repository
git clone [email protected]:sebaestel/ng-patterns.git

or use bower

bower install ng-patterns

Usage

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']
        }
    ];

Options

  • size: [0-9] to generate columns/row width
  • seed: string to generate columns/row width
  • colors: [required] color in hexadecimal into array

About

Basic patterns to user avatars

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •