Skip to content
This repository was archived by the owner on Apr 30, 2025. It is now read-only.

Repository files navigation

angular-date-format

Installation

To install this library, run:

$ npm install angular-date-format --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-date-format

and then from your Angular AppModule:

import{BrowserModule}from'@angular/platform-browser';import{NgModule}from'@angular/core';import{AppComponent}from'./app.component';// Import your libraryimport{AngularDateFormatModule}from'angular-date-format';
@NgModule({declarations: [AppComponent],imports: [BrowserModule,// Specify your library as an importAngularDateFormatModule],providers: [],bootstrap: [AppComponent]})exportclassAppModule{}

Once your library is imported, you can use its components, directives and pipes in your Angular application:

<mat-date-formatname="date"
usefullDate="false"
holiday="false"
weekend="false"
minDate=""
maxDate=""
forceMask="false"
placeholder='Type a date'
format="DD/MM/YYYY"
[(ngModel)]="myModel"
></mat-date-format>

License

MIT

Releases

Packages

Contributors

Languages