基于Angular6
的日期选择组件
npm install wym-ngdatepicker
app.module.ts
import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';
import { AppComponent } from './app.component';
import {DatePickerModule} from 'wym-ngdatepicker/dist';
@NgModule({
declarations: [
AppComponent
],
imports: [
BrowserModule,
DatePickerModule
],
providers: [],
bootstrap: [AppComponent]
})
export class AppModule { }
<wym-date-picker></wym-date-picker>