Error: Uncaught (in promise): Failed to load login.component.html

前端 未结 5 1114
醉话见心
醉话见心 2021-01-20 06:36

I tried to access a custom built html using templateUrl in Angular2.

Here is my login.component.ts

import {Component} from \'@angular/core\';

@Comp         


        
5条回答
  •  温柔的废话
    2021-01-20 07:13

    Generally this type of errors comes because of the Angular could not find the specified path. I have solved this issue by changing the html file path in my templateUrl in @Component.

提交回复
热议问题