當我使用templateUrl
在@Component
我在瀏覽器控制檯中出現以下錯誤。無法加載app.html
@Component({
selector: 'http-app',
directives: [
],
templateUrl: "app.html",
})
class HttpApp {
}
Error: Uncaught (in promise): Failed to load app.html
[email protected]http://localhost:8080/vendor.js:6504:33 makeResolver/<@http://localhost:8080/vendor.js:6481:15 ApplicationRef_http://localhost:8080/common.js:9943:26 [616]/http://localhost:8080/vendor.js:6289:21 NgZoneImpl/this.inner<[email protected]http://localhost:8080/common.js:10351:33 [616]/http://localhost:8080/vendor.js:6288:21 [616]/http://localhost:8080/vendor.js:6182:26 scheduleResolveOrReject/<@http://localhost:8080/vendor.js:6537:54 [616]/http://localhost:8080/vendor.js:6322:25 NgZoneImpl/this.inner<[email protected]http://localhost:8080/common.js:10342:33 [616]/http://localhost:8080/vendor.js:6321:25 [616]/http://localhost:8080/vendor.js:6222:30 [email protected]http://localhost:8080/vendor.js:6440:27 ZoneTask/[email protected]http://localhost:8080/vendor.js:6392:23
ARH項目:
Test
-app
--css
--img
--ts
---components
----login
-----login.ts
-----login.html
----services
---app.ts
---app.html
---vendor.ts
--index.html
凡位於你的'app.html'文件?你能提供你的項目組織嗎? –