-
Notifications
You must be signed in to change notification settings - Fork 27.4k
ngRroute : Empty html template returns "Failed to load template" #9581
Comments
This is a |
Just FYI, it "should" work for you if you use |
@caitp, it's not affecting me, i just noticed it while i was working, quickly googled it couldn't find any match so i thought i'd submit it, first time submitting a bug to angularjs repo, i hope i helped 🎅 |
The commit (a70e283) mentions empty templates causing errors as a Breaking Change. I'd say yes, because ng-view with an empty template doesn't really make sense. The question is if that makes sense. Maybe we should just tweak the error message? |
It's a bollocks error with no meaningful reason for existing, actually. While logging a message wouldn't be seriously harmful, some people actually find the empty template behaviour useful and it's been asked for by others, though don't ask me why. There's no issue with element transclusion because the content fill directive is a different directive from the element transclusion issue. It's just an arbitrary "we will throw for no reason here because lol" thing. |
allow empty html template and not throw error Closes angular#9581
allow empty html template and not throw error Closes angular#9581
allow empty html template and not throw error Closes angular#9581
allow empty html template and not throw error Closes angular#9581
kudos @ramigb 💃 |
When i try to load an empty template -blank html page- i get the following errors "Failed to load template".
I am using version "1.3.0-rc.5", tried it on Chrome and FireFox latest builds.
The text was updated successfully, but these errors were encountered: