1.0.0 • Published 8 years ago
angular-cc-expiration-date v1.0.0
angular-cc-expiration-date
Installation
To install this library, run:
$ npm install angular-cc-expiration-date --saveConsuming your library
Once you have published your library to npm, you can import your library in any Angular application by running:
$ npm install angular-cc-expiration-dateand then from your Angular AppModule:
import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';
// Import your library
import { ExpirationDateModule } from 'angular-cc-expiration-date';
@NgModule({
declarations: [],
imports: [
BrowserModule,
// Specify your library as an import
ExpirationDateModule
],
providers: [],
bootstrap: [AppComponent]
})
export class AppModule { }Once your library is imported, you can use its components, directives and pipes in your Angular application:
<!-- To use the exp-date directive which will format a text input into a date -->
<input type="text" expDate><!-- To use the exp-date pipe which will format a text binded variable into a date -->
<h1 [innerHtml]="someStringVariable | expDate"></h1>Development
To generate all *.js, *.d.ts and *.metadata.json files:
$ npm run buildTo lint all *.ts files:
$ npm run lintLicense
MIT © Everett Zettersten