ratify-tr
v0.0.2
Published
> This angular component library is planned to hold different sort of rating components needed for an angular application development.
Downloads
4
Readme
Angular 6 Ratify
This angular component library is planned to hold different sort of rating components needed for an angular application development.
For now, one component is added in this library
<lib-ratify></lib-ratify>
How to use?
- Include our
ratify-tr
module inapp.module.ts
import { RatifyModule } from 'ratify-tr';
@NgModule({
declarations: [
AppComponent
],
imports: [
BrowserModule,
RatifyModule //<-- add the module in imports
],
providers: [],
bootstrap: [AppComponent]
})
export class AppModule { }
- Add the component
<lib-ratify>
where rating part is expected in your application
Sample implementation
app.module.ts
import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';
import { AppComponent } from './app.component';
import { RatifyModule } from 'ratify-tr';
@NgModule({
declarations: [
AppComponent
],
imports: [
BrowserModule,
RatifyModule
],
providers: [],
bootstrap: [AppComponent]
})
export class AppModule { }
app.component.html
<div style="text-align:center">
<h1>
Lets rate it!
</h1>
<lib-ratify></lib-ratify>
</div>
app.component.ts