我的ng2-app仅在发生angular2视图事件后更新其视图。自从我将ng2-app从rc.4更新为final后出现此问题。在某些事件(例如模糊)之后,视图会更新,如果我使用某些代码更改模型,我的视图将无法更新,直到下一个事件。每当我触发事件(模糊事件)时,我收到此错误消息:
Error: Expected to not be in Angular Zone, but it is!
at Function.NgZone.assertNotInAngularZone (core.umd.js:6081)
at Object.next (core.umd.js:6288)
at SafeSubscriber.schedulerFn [as _next] (core.umd.js:5952)
at SafeSubscriber.__tryOrUnsub (Subscriber.ts:238)
at SafeSubscriber.next (Subscriber.ts:190)
at Subscriber._next (Subscriber.ts:135)
at Subscriber.next (Subscriber.ts:95)
at EventEmitter.Subject.next (Subject.ts:61)
at EventEmitter.emit (core.umd.js:5944)
at eval (core.umd.js:6180)
将应用程序升级到@ NgModule语法后,您是否知道此错误?也许它与延迟加载的组件有关。希望你能帮助我摆脱这个错误...也许它与@component上的rc.4预编译数组有关?我真的需要帮助