unhandled Promise rejection: Failed to load

By | March 29, 2018

In the Following angular js code i m getting the below error

unhandled Promise rejection: Failed to load app.test.html ; Zone: ; Task: Promise.then ; Value: Failed to load app.test.html undefined

my code looks like below

Solution:This issue because of wrong syntax. use templateUrl: ‘app/test.html’ instead of templateUrl: ‘app.test.html’.