You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Using backticks 'templateUrl' Component Medata results in templateName being displayed rather than displaying content #3116
run (ng serve) -> page loads and the app works. you see "app works" in the browser.
go into the src/app/app.component.ts.
change the 'templateUrl' metadata from templateUrl: './app.component.html',
To writting backtick because I can't escape it in this editor. templateUrl: [backtick]./app.component.html[backtick]
reload page or re-run ng serve
Expected result
the page would still load as it did before
Actual result
the page shows "./app.component.html" in the browser
the text 'App works' does not appear.
The log given by the failure.
no error logs in the console
Mention any other details that might be useful.
It should be noted that using backticks for the "selector" works as expected.
I have not tested to see if this also fails for "styleUrls" metadata.
In converting my project from systemjs to use angular-cli, this eventually came out as the culprit for downstream issues.
Activity
filipesilva commentedon Nov 21, 2016
Can you open this issue in https://github.com/TheLarkInn/angular2-template-loader? That is where this functionality comes from.
angular-automatic-lock-bot commentedon Sep 6, 2019
This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.
Read more about our automatic conversation locking policy.
This action has been performed automatically by a bot.