mirror of
https://github.com/akveo/ngx-admin.git
synced 2026-02-09 18:04:20 +01:00
refactor(components): ViewChild instead of querying dom
This commit is contained in:
parent
b05f525a7c
commit
d1307b8f58
4 changed files with 10 additions and 15 deletions
|
|
@ -15,9 +15,6 @@ export class BaFullCalendar {
|
|||
|
||||
@ViewChild('baFullCalendar') private _selector:ElementRef;
|
||||
|
||||
constructor () {
|
||||
}
|
||||
|
||||
ngAfterViewInit() {
|
||||
let calendar = $(this._selector.nativeElement).fullCalendar(this.baFullCalendarConfiguration);
|
||||
this.onCalendarReady.emit(calendar);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue