angular2-typescript-webpack icon indicating copy to clipboard operation
angular2-typescript-webpack copied to clipboard

Unable to implement with templateUrl

Open gowthamnandan opened this issue 8 years ago • 3 comments

I have been trying to work with templateUrl instead inline template, but i'm getting error "zone.js:388Unhandled Promise rejection: Failed to load test.html"

gowthamnandan avatar Dec 30 '16 13:12 gowthamnandan

I'm a little busy at the moment, but a PR is welcome! :+1:

schempy avatar Jan 04 '17 19:01 schempy

I haven't worked on this repo in awhile, but I may freshly fork it again and make a bunch of massive updates. For instance, typings is basically dead and replaced by Microsoft's @types. I think inline templates are a "best practice", but I like using templateUrl as well, so I think that people should have that option. There are some good starter projects out there, but they're almost all way too large. I find that I need something like @schempy has again :smile:.

I am working on a side project as well as putting in a lot of hours for my job, so we'll see when I get around to it...

ghost avatar Feb 11 '17 21:02 ghost

@gowthamnandan The value to be used in templateUrl (in this case) is the path relative to the project's root. e.g. templateUrl: './app/index/index.component.html'.

ghost avatar Mar 01 '17 21:03 ghost