Skip to content
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
@lars-erik

Description

@lars-erik

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions