﻿import { Component } from '@angular/core';
import template from './app.template.html';

@Component({
    selector: 'my-app',
    moduleId: module.id,
    template: template
})
export class AppComponent { }
﻿import { Component } from '@angular/core';

@Component({
    selector: 'my-app',
    moduleId: module.id,
    templateUrl: 'app.template.html'
})
export class AppComponent { }
--- 
+++ 
@@ -1,8 +1,9 @@
 ﻿import { Component } from '@angular/core';
+import template from './app.template.html';
 
 @Component({
     selector: 'my-app',
     moduleId: module.id,
-    templateUrl: 'app.template.html'
+    template: template
 })
 export class AppComponent { }
Use import for app template
