0.0.3 • Published 3 years ago
age-pipe v0.0.3
Age
This library was generated with Angular CLI version 11.0.9.
Getting started
Install via npm
npm i age-pipe
Import the module
In your AppModule
, import the AgeModule
import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';
import { AppRoutingModule } from './app-routing.module';
import { AppComponent } from './app.component';
import { AgeModule } from 'age-pipe';
@NgModule({
declarations: [
...
],
imports: [
...
AgeModule
],
providers: [],
bootstrap: [AppComponent]
})
export class AppModule { }
Usage
Note
Pass the age in number only