Failed to load template.html
See original GitHub issueI was testing my package on a new installation of Angular CLI downloading my package from NPM and when using some modules of my application I got the following error returned:
GET http://localhost:4200/button.html 404 (Not Found)
Failed to load button.html
Issue Analytics
- State:
- Created 6 years ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
Failed to load template in angularjs - Stack Overflow
Angular JS Templates:- the file 'todo.tpl.html' which is a template file doesn't load? How do I fix this? Hot Network Questions.
Read more >[$compile:tpload] Failed to load template · Issue #1311 - GitHub
The component I am testing is using the "templateUrl" to provide a template: import { Component, Inject, Input, Output, EventEmitter, ...
Read more >HTML : angularjs Error: [$compile:tpload] Failed to load template
HTML : angularjs Error: [$compile:tpload] Failed to load template [ Gift : Animated Search Engine : https://bit.ly/AnimSearch ] HTML ...
Read more >Angular JS Error: $compile:tpload: Failed to load template
So I am trying to load the template in my directive. This directive is reusable. But I am failing to load the template....
Read more >Unable to load template - NodeBB
It seems to originate from ajaxify.loadTemplate. The template has a script attached to it via plugin.json as such: "static/lib/ ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I found a solution for my case:
Within my .ts components, I was forgetting to remove the space between the “:” of templateUrl
templateUrl : './button.html',
rather than
templateUrl: './button.html',
@abalad — Thank you for posting your solution. Much appreciated! 👍