Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
nxtlife-ionic2-rating
Advanced tools
Readme
Build a simple directive to visualize a star rating bar using angular2 and ionic2.
$ npm install --save nxtlife-ionic2-rating
Import NxtLifeIonic2RatingModule
on module definition that declares the page where you want to add the rating component.
In some cases, all pages are declared on src/app/app.module.ts
.
import { NgModule } from '@angular/core';
import { IonicModule } from 'ionic-angular';
import { MyApp } from './app.component';
// Import ionic2-rating module
import { NxtLifeIonic2RatingModule } from 'nxtlife-ionic2-rating';
@NgModule({
......
......
imports: [
IonicModule.forRoot(MyApp),
NxtLifeIonic2RatingModule // Put ionic2-rating module here
],
......
......
})
export class AppModule {}
Include the component on page template, like the example below:
<nxtlife-rating></nxtlife-rating>
readOnly = false,
max = 5,
emptyStarIconName = "star-outline",
halfStarIconName = "star-half",
starIconName = "star",
nullable = false
When you need to do something when user clicks on a start then you have to use (click)
or (ngModelChange)
with
[(ngModel)]
:
<nxtlife-rating [(ngModel)]="rate" (ngModelChange)="onModelChange($event)">
</nxtlife-rating>
ul {
padding: 0px;
&.rating li {
padding: 5px 10px !important;
background: none;
color: #ffb400;
ion-icon {
font-size: 30px;
}
}
}
FAQs
An Angular2 component to visualize a star rating bar, built for Ionic 2.
The npm package nxtlife-ionic2-rating receives a total of 21 weekly downloads. As such, nxtlife-ionic2-rating popularity was classified as not popular.
We found that nxtlife-ionic2-rating demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.