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

前端 未结 5 1110
醉话见心
醉话见心 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

    (Posted on behalf of the OP).

    Solved this issue by using

    require('./login.component.html')
    

    under my templateurl.

提交回复
热议问题