Angular2, view not updating after variable changes in settimeout

后端 未结 4 1176
再見小時候
再見小時候 2021-01-17 07:47

I am trying to setup my first angular2 application as an experiment and am using the latest beta release.

I am facing a weird issue where the variable i am using in

4条回答
  •  再見小時候
    2021-01-17 08:20

    As Vlado said, it should work ;-)

    I think that the angular2-polyfills.js library should be included into your page. I can't see it. This file is essentially a mashup of zone.js and reflect-metadata. Zones take part of the detection of updates.

    You could have a look at this video where Bryan Ford explains what it is: https://www.youtube.com/watch?v=3IqtmUscE_U.

    Hope it helps you, Thierry

提交回复
热议问题