Skip to content

hanford/angular-stars

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

angular-stars

Live Demo!

NPM

Installation

Installation is super easy, simply add the dependencies to your build and add <stars amount="X"></stars> to your your app.

# use npm
$ npm install angular-stars

Add angular-stars to your dependencies

angular
  .module('yourApp', ['angular-stars'])
  .controller('SampleController', function () {})

API

amount
The first parameter is simply how many stars to render.

max

The max is only needed if you want to specify a max amount of stars to render.

Usage

<stars amount="10"></stars>

Output