Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

README.md

angularify.semantic.rating

angularify.semantic.rating - rating directive for angular.js.

Usage

 <rating id="my-rating" size="large" type="heart" ng-model="rating"></rating>
var ratingApp = angular.module('ratingApp', ['angularify.semantic.rating']);

function RootCtrl ($scope) {
    $scope.rating = 2;
}

IMPORTANT Every <rating> must have unique id attribute.

Rating can have following properties:

  • size - can be: small, large, huge or undefined

  • type - can be any icon class (see semantic-ui docs)

  • ng-model - return Int number: 0..5 (current rating)

Contribution

  1. Fork main repository.
  2. Make changes.
  3. Create issue.
  4. Send pull request.
  5. Thank you.

TODO

  1. Add more tests.