0.0.9 • Published 3 years ago
hl-datetimepicker v0.0.9
This library was generated with Angular CLI version 12.1.0.
This Library is best used with bootstrap 5 floating form control. its datepicker themed for bootstrap floating control.
Import the HlDatetimepickerModule into your app module or whatever lazy loading module you want to
For Example -> app.module.ts
import { CommonModule } from '@angular/common';
import { NgModule } from '@angular/core';
import { HlDatetimepickerModule } from 'hl-datetimepicker';
import { AppRoutingModule } from './app-routing.module';
import { AppComponent } from './app.component';
@NgModule({
declarations: [
AppComponent
],
imports: [
HlDatetimepickerModule,
CommonModule,
AppRoutingModule
],
providers: [],
bootstrap: [AppComponent]
})
export class AppModule { }
Once you import the module you can use it something like below
<hl-datetimepicker [label]="'Select a date and time'" [(ngModel)]="selectedDate"></hl-datetimepicker>
selectedDate is a variabile in your component.ts file which will hold the value