This repository was archived by the owner on Feb 26, 2024. It is now read-only.
This repository was archived by the owner on Feb 26, 2024. It is now read-only.
Testing components using templateUrl fails with setup from this quickstart #329
Closed
Description
I'm leaving an issue here as a companion to this stack overflow question:
http://stackoverflow.com/questions/41243183/karma-fails-to-proxy-html-with-the-angular-2-quickstart-config
Gist of it is that karma reports "failed to proxy [file] (socket hang up)" when I try to use templateUrl in a component. Just changing app.component.ts to the following (and creating the html file under app) will make it fail:
import { Component } from '@angular/core';
@Component({
selector: 'my-app',
//template: `<h1>Hello {{name}}</h1>`,
templateUrl: "app/test.html"
})
export class AppComponent { name = 'Angular'; }
Metadata
Metadata
Assignees
Labels
No labels