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
I've got a strange behavior while loading the component template, some components works fine by using relative paths: templateUrl: './home.component.html'
And others cannot work without specifying an absolute path: templateUrl : '/src/app/shared/components/menu/menu.component.html'
However, they are in the same folder!
I got this error in the console:
Hey,
I got the same strange behavior today and fixed it by adding a , to the end of the line (if you don't like it in the last line of the decorator, move it in front of the selector).
It seems like there might be a regexp that specifically looks for the comma at the end of the templateUrl property.
I've got a strange behavior while loading the component template, some components works fine by using relative paths:
templateUrl: './home.component.html'
And others cannot work without specifying an absolute path:
templateUrl : '/src/app/shared/components/menu/menu.component.html'
However, they are in the same folder!
I got this error in the console:
I'm using the latest version of everything!, So do you have explanation for this ?
The text was updated successfully, but these errors were encountered: