Socket
Socket
Sign inDemoInstall

ionic2-rating

Package Overview
Dependencies
22
Maintainers
1
Versions
17
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.0.7 to 0.0.8

2

module.js

@@ -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

13

package.json
{
"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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc