ionic2-rating
Advanced tools
Comparing version 0.0.7 to 0.0.8
@@ -12,2 +12,3 @@ "use strict"; | ||
var core_1 = require('@angular/core'); | ||
var ionic_angular_1 = require('ionic-angular'); | ||
var ionic2_rating_1 = require('./ionic2-rating'); | ||
@@ -20,2 +21,3 @@ var IONIC2_RATING_DIRECTIVES = [ionic2_rating_1.Ionic2Rating]; | ||
core_1.NgModule({ | ||
imports: [ionic_angular_1.IonicModule], | ||
declarations: IONIC2_RATING_DIRECTIVES, | ||
@@ -22,0 +24,0 @@ exports: IONIC2_RATING_DIRECTIVES |
{ | ||
"name": "ionic2-rating", | ||
"version": "0.0.7", | ||
"version": "0.0.8", | ||
"author": "andrucz", | ||
@@ -23,13 +23,9 @@ "license": "MIT", | ||
"src/module.ts", | ||
"typings.json", | ||
"src/ionic2-rating.ts" | ||
], | ||
"dependencies": { | ||
"ionic-angular": "^2.0.0-rc.0" | ||
}, | ||
"devDependencies": { | ||
"@angular/core": "2.0.0-rc.5", | ||
"rxjs": "5.0.0-beta.6", | ||
"zone.js": "0.6.12", | ||
"es6-shim": "0.35.1", | ||
"typings": "1.3.1" | ||
"typescript": "^2.0.3" | ||
}, | ||
@@ -45,5 +41,4 @@ "repository": { | ||
"scripts": { | ||
"install_typings": "typings install", | ||
"prepublish": "typings install && tsc --outDir ." | ||
"prepublish": "tsc --outDir ." | ||
} | ||
} |
@@ -6,10 +6,29 @@ ionic2-rating | ||
#### How to use: | ||
#### How to install: | ||
Install with npm: | ||
##### For Angular 2 RC5 and later (Ionic 2 RC.0 and later): | ||
``` | ||
$ npm install ionic2-rating | ||
$ npm install --save ionic2-rating | ||
``` | ||
```Typescript | ||
import { Ionic2RatingModule } from 'ionic2-rating'; | ||
@NgModule({ | ||
imports: [ | ||
Ionic2RatingModule | ||
] | ||
}) | ||
export class AppModule {} | ||
``` | ||
Important: there is an open issue about the use of third party libraries on Ionic 2 RC.0 apps: https://github.com/driftyco/ionic/issues/8322 | ||
##### For Angular 2 RC4 (Ionic 2 beta version): | ||
``` | ||
$ npm install --save ionic2-rating@0.0.6 | ||
``` | ||
In your component: | ||
@@ -29,2 +48,4 @@ | ||
#### How to use: | ||
```HTML | ||
@@ -40,2 +61,8 @@ <rating [(ngModel)]="rate"></rating> | ||
If you want to change the number of stars, use "max" property (default is 5): | ||
```HTML | ||
<rating [(ngModel)]="rate" max="10"></rating> | ||
``` | ||
You may also need to customize component styles: | ||
@@ -42,0 +69,0 @@ |
import { NgModule } from '@angular/core'; | ||
import { IonicModule } from 'ionic-angular'; | ||
import { Ionic2Rating } from './ionic2-rating'; | ||
@@ -7,2 +8,3 @@ | ||
@NgModule({ | ||
imports: [IonicModule], | ||
declarations: IONIC2_RATING_DIRECTIVES, | ||
@@ -9,0 +11,0 @@ exports: IONIC2_RATING_DIRECTIVES |
Sorry, the diff of this file is not supported yet
15750
1
77
1
15
244
+ Addedionic-angular@^2.0.0-rc.0
+ Added@angular/common@2.4.8(transitive)
+ Added@angular/compiler@2.4.8(transitive)
+ Added@angular/compiler-cli@2.4.8(transitive)
+ Added@angular/core@2.4.8(transitive)
+ Added@angular/forms@2.4.8(transitive)
+ Added@angular/http@2.4.8(transitive)
+ Added@angular/platform-browser@2.4.8(transitive)
+ Added@angular/platform-browser-dynamic@2.4.8(transitive)
+ Added@angular/platform-server@2.4.8(transitive)
+ Added@angular/tsc-wrapped@0.5.2(transitive)
+ Addedionic-angular@2.3.0(transitive)
+ Addedminimist@1.2.8(transitive)
+ Addedmkdirp@0.5.6(transitive)
+ Addedparse5@2.2.3(transitive)
+ Addedreflect-metadata@0.1.14(transitive)
+ Addedrxjs@5.0.1(transitive)
+ Addedsource-map@0.5.7(transitive)
+ Addedsource-map-support@0.4.18(transitive)
+ Addedsymbol-observable@1.2.0(transitive)
+ Addedtsickle@0.2.6(transitive)
+ Addedtypescript@2.9.2(transitive)
+ Addedzone.js@0.7.2(transitive)