refactor(components): ViewChild instead of querying dom

This commit is contained in:
nixa 2016-05-20 20:00:36 +03:00
parent b05f525a7c
commit d1307b8f58
4 changed files with 10 additions and 15 deletions

View file

@ -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);