0.0.2 • Published 6 years ago

ratify-tr v0.0.2

Weekly downloads
10
License
-
Repository
-
Last release
6 years ago

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 in app.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

0.0.2

6 years ago

0.0.1

6 years ago