I tried to access a custom built html using templateUrl in Angular2.
Here is my login.component.ts
import {Component} from \'@angular/core\'; @Comp
(Posted on behalf of the OP).
Solved this issue by using
require('./login.component.html')
under my templateurl.