1.0.0 • Published 7 years ago

angular-cc-expiration-date v1.0.0

Weekly downloads
3
License
MIT
Repository
github
Last release
7 years ago

angular-cc-expiration-date

Installation

To install this library, run:

$ npm install angular-cc-expiration-date --save

Consuming 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-date

and 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 build

To lint all *.ts files:

$ npm run lint

License

MIT © Everett Zettersten

angular-cc-expiration-date

1.0.0

7 years ago

0.3.8

7 years ago

0.3.7

7 years ago

0.3.6

7 years ago

0.3.5

7 years ago

0.3.4

7 years ago

0.3.3

7 years ago

0.3.2

7 years ago

0.3.0

7 years ago

0.2.0

7 years ago

0.1.0

7 years ago