UI Components / Forms

import { NgModule } from '@angular/core';
import { BrowserModule } from '@angular/platform-browser';
import { DatepickerModule } from 'ng2-bootstrap';
import { AppComponent } from './component';

@NgModule({
  imports: [BrowserModule, DatepickerModule.forRoot()],
  declarations: [AppComponent],
  bootstrap: [AppComponent]
})
export class AppModule {}
import {Component} from '@angular/core';

@Component({
  selector: 'my-app',
  template: `
    <datepicker [showWeeks]="false"></datepicker>
  `
})
export class AppComponent {}