ng-gregorian-hijri-datepicker
Version:
* Lightweight **Angular** datepicker based on [ng-bootstrap](https://ng-bootstrap.github.io/#/components/datepicker/overview) that supports **Gregorian** and **Hijri** calendars. * Provides ability to swap between **Gregorian** and **Hijri** calendars *
23 lines (18 loc) • 438 B
text/typescript
import { Directive, Optional, SkipSelf } from '@angular/core';
import { ControlContainer, NgForm } from '@angular/forms';
export function test(form: NgForm) {
return form;
}
@Directive({
selector: '[provideParentForm]',
providers: [
{
provide: ControlContainer,
useFactory: test ,
deps: [[new Optional(), new SkipSelf(), NgForm]]
}
]
})
export class ProvideParentFormDirective {
constructor() { }
}