daniel daniel - 1 year ago 93
AngularJS Question

ExpressionChangedAfterItHasBeenCheckedException since Angular 2 beta

I updated Angular 2 to beta.0. and use the firebaseevent pipe from: https://github.com/sararob/angular2base

<tr *ngFor="#t of DBSERVER | firebaseevent:'child_added'">

Now I get the error:

Error: Expression 'DBSERVER | firebaseevent:'child_added' in Log@21:10' has changed after it was checked. Previous value: 'null'. Current value: 'undefined'
at ExpressionChangedAfterItHasBeenCheckedException.BaseException [as constructor]

It worked with alpha46. Any ideas?

Answer Source

right answer in comment :

Switching back to prod mode corrects (hides) the problem: import {enableProdMode} from 'angular2/core'; enableProdMode(); bootstrap(MainCmp, []) – user3636086 4 hours ago

'beta' branch of github.com/meandemo/ng2-demo.git, has been updated.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download