2016-09-20 49 views
1

請問任何人請告訴我爲什麼我使用的Angular 2最終測試普朗克(https://plnkr.co/edit/JY0hcFdaziIsFFJmRaz3?p=preview)不工作?Plunkr:測試角度2最終普拉克不工作

我得到這個錯誤在控制檯上:

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() 
+0

的另一個原因是,對Plunker運行服務器是前所未有的負載下最近和很痛苦從間歇性中斷。此後已經擴大並表現更好。 – filearts

回答

1

有幾個問題,

1)app.component應該是內部app文件夾
2)app.module文件應該在應用文件夾中
3)在systemjs.config.js文件,rxjs庫需要引用。
4)取出routing進口:[BrowserModule,...]

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

'rxjs': 'npm:rxjs', 
+0

非常感謝!這工作! – takeradi

+0

歡迎您! – micronyks