• Stars
    star
    144
  • Rank 248,404 (Top 6 %)
  • Language
    CoffeeScript
  • License
    MIT License
  • Created about 10 years ago
  • Updated almost 6 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

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

ionic-rating

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

rating

Also able to print half star (display only) :

rating-half

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 your index.html

<script src="lib/ionic-rating/ionic-rating.min.js"></script>

In you template:

<rating ng-model="rating.rate" max="rating.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.rating = {};
  $scope.rating.rate = 3;
  $scope.rating.max = 5;

});

For strict-di, you can use

.controller('RatingController', [ '$scope', '$attrs', 'ratingConfig', function($scope, $attrs, ratingConfig) ]

If you want to make it read only

added readonly="readOnly" to rating directive, and $scope.readOnly = true; to the controller.

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

More Repositories

1

electron-pdf

📄 A command line tool to generate PDF from URL, HTML or Markdown files.
JavaScript
1,230
star
2

soundredux-native

📱 In an effort to try react-native along with redux
JavaScript
781
star
3

react-dropdown

🔽 A dead simple dropdown component for React
JavaScript
661
star
4

react-chartist

⚛ React component for Chartist.js
JavaScript
528
star
5

book-gpt

Drop a book, start asking question.
TypeScript
431
star
6

diagram-gpt

Draw flowchart, sequence diagram, class diagram, user journey, gantt, C4C diagram with nature language.
TypeScript
190
star
7

react-testing-recipes

📝 A list of recipes to testing your React code
JavaScript
78
star
8

intro-to-react

react入门教程
JavaScript
53
star
9

gulp-html2js

Gulp plugin for converting AngularJS templates to JavaScript
JavaScript
38
star
10

ng-textcomplete

An angularjs directive for github-like autocomplete
JavaScript
38
star
11

gifme

A tool to make a gif in the browser for sharing
JavaScript
38
star
12

music163-cli

mucis163 client
JavaScript
37
star
13

jingfm-cli

start playing music from your awesome command line with jingfm-cli
JavaScript
33
star
14

node-auth-weibo

A complete oauth flow example for Sina weibo
JavaScript
30
star
15

shenjs

The shenjs iOS app build with react-native
JavaScript
29
star
16

node-registration

Simple and robust user registraion process with expressjs + mongoose + nodemailer + more...
JavaScript
24
star
17

stream-handbook-cn

A translation for stream handbook from @substack
24
star
18

babel-jsxgettext

A tool like jsxgettext, but works for es6 + jsx that babel support
JavaScript
22
star
19

slack-pokemon-emoji

A tool to upload all the pokemon to slack emoji.
JavaScript
21
star
20

swift-github-demo

swift-github-demo
Swift
21
star
21

geo-cn

China GeoJSON data
19
star
22

jsconf-china-2016-talk

jsconf-china-2016-talk
JavaScript
18
star
23

webpack-bourbon-test

A repo to test use webpack sass-loader with node-bourbon
JavaScript
17
star
24

docker-tape-run

A demo to setup a tape-run environment on linux with Docker
JavaScript
16
star
25

react-data-visualization

A repo to demonstration using react to do data-visualization
JavaScript
15
star
26

electron-video-stream

Use electron to capture video and stream it to the Internet
JavaScript
13
star
27

bkboard

A Buildkite build report dashboard in terminal and anywhere else.
JavaScript
12
star
28

music163

nodejs client for music163
JavaScript
9
star
29

react-yaml-editor

A yaml editor with reactjs
JavaScript
8
star
30

gify-app

Convert videos to gifs as an OS X, Linux and Windows app
JavaScript
6
star
31

bel-todomvc

A todomvc implemented in Bel
JavaScript
6
star
32

isomorphic-github

An example to test isomorphic application with react + flux + react-router + dispatcher + express
JavaScript
5
star
33

secured-static-land

🎉 Secured your static website with different oauth provider with ease.
HTML
5
star
34

react-send-action

A React binding for send-action
JavaScript
5
star
35

ionic-infobar

A ionic style angularjs directive to display a info bar in the page header
CSS
4
star
36

fraserxu.dev

My new personal sites
JavaScript
4
star
37

element-markdown

A yo-yo component for rendering Markdown with marked
JavaScript
4
star
38

hotdog

Learning tfjs examples
TypeScript
4
star
39

data-canvas

An app to display the data for the data-canvas project
JavaScript
4
star
40

videocat

webrtc video sharing electron app for mac os (Alpha)
CSS
4
star
41

china-population

A China population data visualization project
JavaScript
3
star
42

bel-video-element

A simple video element with bel
JavaScript
3
star
43

next-graphql-github-demo

next-graphql-github-demo
JavaScript
3
star
44

element-boilerplate

A boilerplate to create bel or yo-yo element component
JavaScript
3
star
45

react-barchart-envelope

React component for rendering simple barchart-envelope
JavaScript
3
star
46

aws.fraserxu.dev

aws.fraserxu.dev
TypeScript
3
star
47

is-color-bright

is-color-bright
JavaScript
3
star
48

file-converter

A client-side app that lets you convert between documents written in various markup languages.
JavaScript
3
star
49

array-duplicate

Find duplicate item from two array
JavaScript
3
star
50

taco_dev

🌮 A Rust command line tool that setup a local domain environment for development using nginx and dnsmasq
Rust
2
star
51

signalhub

A signalhub server hosted on heroku
JavaScript
2
star
52

buildkite-node-docker

A buildkite agent to run multiple version nodejs test
2
star
53

videos

https://videos.fraserxu.me
CSS
2
star
54

EDMGenerator

Simple EDM Generator
JavaScript
2
star
55

spy-react-component-lifecycle

spy-react-component-lifecycle
JavaScript
2
star
56

vite-playground

A vite based development playground
JavaScript
2
star
57

element-wrapper

A simple and safe way to set innerHTML for yo-yo or bel component
JavaScript
2
star
58

budget-hack

Budget Hack
JavaScript
2
star
59

go-music163

go client for music163
2
star
60

angular-backoff

exponential backoff for angularjs
CoffeeScript
2
star
61

react-weibo

Weibo client with react
JavaScript
2
star
62

buildkite-node

A buildkite nodejs sdk(WIP)
JavaScript
2
star
63

intro-to-graphql

A intro to graphql
JavaScript
2
star
64

usib

url-screenshot-imgur-browser
JavaScript
2
star
65

slack-translate

A simple node server use Slack slash command to do translation
JavaScript
2
star
66

myanmar-numeral

A simple module to convert Arabic numerals to Myanmar numerals
JavaScript
2
star
67

aws-glossary-slack-bot

Send a message to your slack channel daily of one service definition from AWS
JavaScript
2
star
68

resume

personal resume
HTML
1
star
69

campjs

JavaScript
1
star
70

aframe-ar-experiment

aframe-ar-experiment
1
star
71

gams

gams
JavaScript
1
star
72

fraserxu.github.io

Jekyll based blog
CSS
1
star
73

gatekeeper

Enables client-side applications to dance OAuth with GitHub.
Elixir
1
star
74

elm-counter

elm-counter
JavaScript
1
star
75

secured-static-land-next

Demo using secured-static-land with next.js
JavaScript
1
star
76

xnpm-client

The client code to play with the data generated by xnpm
JavaScript
1
star
77

isomorphic-webpack-dynamic-import-demo

isomorphic-webpack-dynamic-import-demo
JavaScript
1
star
78

ionic-resetfield

Angularjs ionic directive to enable reset-field on your form element
CoffeeScript
1
star
79

til

keep track of TIL
1
star
80

d3-map

A repo to save my progress
1
star
81

hands-on-react

Hands on react
JavaScript
1
star
82

es6-demo

Demo repo for the ES6 in today's project meetup
JavaScript
1
star
83

netlify.fraserxu.dev

netlify.fraserxu.dev
HTML
1
star
84

github-voter

github-voter
Vue
1
star
85

node-til

til from command line
JavaScript
1
star