Skip to content

Unable to implement with templateUrl #15

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
gowthamnandan opened this issue Dec 30, 2016 · 3 comments
Open

Unable to implement with templateUrl #15

gowthamnandan opened this issue Dec 30, 2016 · 3 comments

Comments

@gowthamnandan
Copy link

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"

@schempy
Copy link
Owner

schempy commented Jan 4, 2017

I'm a little busy at the moment, but a PR is welcome! 👍

@ghost
Copy link

ghost commented Feb 11, 2017

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 😄.

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
Copy link

ghost commented Mar 1, 2017

@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 ghost mentioned this issue Mar 3, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants