npm.io
0.0.9 • Published 5 years ago

hl-datetimepicker

Licence
—
Version
0.0.9
Deps
3
Size
162 kB
Vulns
0
Weekly
0
DeprecatedThis package is deprecated

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