How write single url for angular 2 component templateUrl for SystemJS and Webpack?
问题 I find out that for SystemJS and Webpack project builds in Angular2 @Component templateUrls string must be different. For SystemJS: @Component({ selector: 'home' templateUrl: './app/home/home.component.html' }) export class HomeComponent implements OnInit, OnDestroy { ... } For Webpack: @Component({ selector: 'home' templateUrl: './home.component.html' }) export class HomeComponent implements OnInit, OnDestroy { ... } For SystemJS build templateUrl string must be full path from root. For