Angular Js Error: $compile:tpload: Failed To Load Template:
Solution 1:
Following are the possible solution 1. check for the correct path. Check the network tab whether you are getting 200 OK 2. check in the sources tab for the html file 3. if you are using webpack then change the templateUrl to template and use require to load the file
Solution 2:
The problem is that for some reason your http server can't find template in your working directory.
You can test it directly in browser:
<url>/classificationviewer.html
And you should see 404 NOT FOUND
, which means that this template was not found.
You said, that your other templates are working great, so you can find where are they located in your working directory and place this one at the same location.
Solution 3:
if you are using your local system directly then does not work. use the angular server load the file step to solve your problem 1.open cmd prompt and type npm install -g http-server 2. In cmd type cd (your project folder path) like: cd desktop/app/workout then 3. now in your folder path type http-server -o this command serve your local page on the angular server on your local meachine
Post a Comment for "Angular Js Error: $compile:tpload: Failed To Load Template:"