This repository has been archived by the owner on Apr 12, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 27.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix($templateRequest): give tpload error the correct namespace
BREAKING CHANGE Previously the `tpload` error was namespaced to `$compile`. If you have code that matches errors of the form `[$compile:tpload]` it will no longer run. You should change the code to match `[$templateRequest:tpload]`.
- Loading branch information
1 parent
56b6ba8
commit c617d6d
Showing
3 changed files
with
19 additions
and
12 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
@ngdoc error | ||
@name $templateRequest:tpload | ||
@fullName Error Loading Template | ||
@description | ||
|
||
This error occurs when {@link $templateRequest} attempts to fetch a template from some URL, and | ||
the request fails. | ||
|
||
The template URL might be defined in a directive/component definition, an instance of `ngInclude`, | ||
an instance of `ngMessagesInclude` or a templated route in a `$route` route definition. | ||
|
||
To resolve this error, ensure that the URL of the template is spelled correctly and resolves to | ||
correct absolute URL. | ||
The [Chrome Developer Tools](https://developers.google.com/chrome-developer-tools/docs/network#network_panel_overview) | ||
might also be helpful in determining why the request failed. | ||
|
||
If you are using {@link ng.$templateCache} to pre-load templates, ensure that the cache was | ||
populated with the template. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
c617d6d
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This made some test in compile fail that assert against the error identifier