【问题标题】:Plunkr: Test Angular 2 Final Plunk Not workingPlunkr:测试 Angular 2 Final Plunk 不工作
【发布时间】:2016-09-20 22:27:47
【问题描述】:

谁能告诉我为什么我正在使用的 Angular 2 Final Test Plunk (https://plnkr.co/edit/JY0hcFdaziIsFFJmRaz3?p=preview) 不起作用?

我在控制台上收到此错误:

Refused to display 'https://run.plnkr.co/QdUdeWWKa25MFN9V/' in a frame because it set 'X-Frame-Options' to 'SAMEORIGIN'.
https://run.plnkr.co/QdUdeWWKa25MFN9V/ Failed to load resource: the server responded with a status of 522 ()

【问题讨论】:

  • 另一个原因是 Plunker 的运行服务器最近承受了前所未有的负载,并且遇到了间歇性中断。此后,它已被横向扩展并表现更好。

标签: angular plunker


【解决方案1】:

问题很少,

1) app.component 应该在 app 文件夹内
2) app.module 文件应该在 app 文件夹
3) 在 systemjs.config.js 文件中,需要 rxjs 库 引用。
4) 从 imports:[BrowserModule,...]

中删除 routing

工作演示:https://plnkr.co/edit/ONGeKcu0sVfQqR7gpHZY?p=preview

'rxjs':  'npm:rxjs',

【讨论】:

    猜你喜欢
    • 2018-03-18
    • 1970-01-01
    • 2019-02-17
    • 2016-10-15
    • 2018-12-02
    • 2017-07-12
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多