I tried to access a custom built html using templateUrl in Angular2.
Here is my login.component.ts
import {Component} from \'@angular/core\'; @Comp
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.