Angular2 based Material Design datepicker component.
- A recommended way to install md2-datepicker is through npm package manager using the following command:
npm install md2-datepicker --save
- Setup
MD2-DATEPICKER
in your project
// system.config.js
// ================
{
map: {
'md2-datepicker': 'node_modules/md2-datepicker'
},
packages: {
'md2-datepicker': {
format: 'cjs',
main: 'md2datepicker.umd.js'
}
}
}
// app.module.ts
// =============
import { Md2DatepickerModule } from 'md2-datepicker';
@NgModule({
imports: [
...,
Md2DatepickerModule.forRoot(),
],
...
})
export class AppModule { }
- More information regarding of using md2-datepicker is located in demo and demo sources.