}).then(schema => {
   this.toastrService.clear(loadingToaster.toastId);
   this.schema = schema;
   this.changeDetectorRef.markForCheck();
 }).catch(error => {
Exemple #2
0
 .subscribe(m => {
   this.menu = m;
   this._cdr.markForCheck();
 });
Exemple #3
0
 constructor(c: ChangeDetectorRef, r: ElementRef) {
   c.detach();
   this.el = r.nativeElement;
 }
Exemple #4
0
 media.observe('(max-width: 599px)').subscribe( isMatched => {
   this.isMediaSmall = isMatched.matches;
   cdr.markForCheck();
 });
Exemple #5
0
 setInterval(() => {
   // the following is required, otherwise the view will not be updated
   this.ref.markForCheck();
 }, 5000);
Exemple #6
0
this._intlSubscription = _intl.changes.subscribe(() => changeDetectorRef.markForCheck());
 ngAfterViewInit() {
     this.drawer = this.drawerComponent.sideDrawer;
     this._changeDetectionRef.detectChanges();
 }
 this.toolbar.stateChange.subscribe(editor => {
     this.selected =
         this.group.tools.find(option => option.select(editor.state)) || this.group
     this.cdr.detectChanges()
 })
Exemple #9
0
 setInterval(() => {
   this.ref.markForCheck();
 }, 100);
 ngOnDestroy () {
   this.chRef.detach();
 }