ionic-rating

An angularjs directive that take care of visualising a star rating bar

Module License: MIT

Added by: Sam Deering

GitHub

Repository

fraserxu/ionic-rating

Stats

Stars: 133

Watchers: 133

Forks: 64

Author

Fraser Xu
Fraser Xu

Module Description

ionic-rating

An angularjs directive that take care of visualising a star rating bar, build for ionic.

rating

Why?

angular-ui has the same rating directive, but it is build on top of bootstrap. This repo just reuse most of the js code, but build for the ionic framework.

How to use?

Install with bower:

$ bower install ionic-rating

In you template:

<rating ng-model="rate" max="max"></rating>

In you controller:

// first inject it into your app
angular.module('youApp', ['ionic.rating'])

.controller('yourCtrl', function($scope) {

  // set the rate and max variables
  $scope.rate = 3;
  $scope.max = 5;

});

Note: You may also need to include the style file. But I suggest you just copy it to your project.

Build

$ npm i
$ make all

License

MIT

Module stats last updated: 2017-03-14 15:00:09

Disclaimer: Some data on this page may have been gathered from the authors GitHub respository. If you see any mistakes or outdated information please let us know. Thanks!