Where is angular2-polyfills now that non-beta Angular 2 is packaged as @angular?

前端 未结 3 1637
失恋的感觉
失恋的感觉 2021-02-06 23:46

Now that Angular2 is out of beta (2.0.0-RC.0 and RC.1 came out yesterday/May 3, 2016), all of Angular 2 is packaged for use with NPM under the new @angular namespace. A lot of

3条回答
  •  囚心锁ツ
    2021-02-07 00:44

    I recently had this issue with rc.5 and solved it by importing zone like so:

    // import 'angular2/bundles/angular2-polyfills'; // old
    import 'reflect-metadata';
    import 'zone.js/dist/zone'; 
    import 'zone.js/dist/long-stack-trace-zone';
    

提交回复
热议问题