Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

docs(minErr): add minErr description for $compile:tpload #3427

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions docs/content/error/compile/tpload.ngdoc
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,10 @@
@name $compile:tpload
@fullName Template Loader Error
@description

This error occurs when {@link api/ng.$compile `$compile`} attempts to fetch a template from some
URL, and the request fails.

To resolve this error, ensure that the URL of the template is reachable. The
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"reachable" could be enhanced to include: "check that the templateUrl is spelled correctly; that the path is correct compared to the current application base href; or that the template has been pre-loaded into the {@link $templateCache}

{@link 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.