daniel daniel - 1 month ago 14
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'">
<td>{{t.Message}}</td>
<td>{{t.Source}}</td>
</tr>


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

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.

Comments