ngx-emoji-rating

An animated emoji rating component

NPM JavaScript Style Guide

Stackblitz Demo

Step 1: Install ngx-emoji-rating

npm install ngx-emoji-rating

Step 2: Import the NgxEmojiRatingModule module

import { NgModule } from '@angular/core';
import { FormsModule, ReactiveFormsModule } from '@angular/forms';
import { BrowserModule } from '@angular/platform-browser';

import { AppComponent } from './app.component';
import { NgxEmojiRatingModule } from 'ngx-emoji-rating';

@NgModule({
  declarations: [
    AppComponent
  ],
  imports: [
    BrowserModule,
    FormsModule,
    ReactiveFormsModule,
    NgxEmojiRatingModule
  ],
  providers: [],
  bootstrap: [AppComponent]
})
export class AppModule { }

Using Reactive Form

<ngx-emoji-rating formControlName="rating"></ngx-emoji-rating>

Using ngModel

<ngx-emoji-rating [(ngModel)]="rating"></ngx-emoji-rating>

MIT © https://github.com/ultimateakash

GitHub

View Github