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

Commit c617d6d

Browse files
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]`.
1 parent 56b6ba8 commit c617d6d

File tree

3 files changed

+19
-12
lines changed

3 files changed

+19
-12
lines changed

docs/content/error/$compile/tpload.ngdoc

Lines changed: 0 additions & 11 deletions
This file was deleted.
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
@ngdoc error
2+
@name $templateRequest:tpload
3+
@fullName Error Loading Template
4+
@description
5+
6+
This error occurs when {@link $templateRequest} attempts to fetch a template from some URL, and
7+
the request fails.
8+
9+
The template URL might be defined in a directive/component definition, an instance of `ngInclude`,
10+
an instance of `ngMessagesInclude` or a templated route in a `$route` route definition.
11+
12+
To resolve this error, ensure that the URL of the template is spelled correctly and resolves to
13+
correct absolute URL.
14+
The [Chrome Developer Tools](https://developers.google.com/chrome-developer-tools/docs/network#network_panel_overview)
15+
might also be helpful in determining why the request failed.
16+
17+
If you are using {@link ng.$templateCache} to pre-load templates, ensure that the cache was
18+
populated with the template.

src/ng/templateRequest.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
'use strict';
22

3-
var $templateRequestMinErr = minErr('$compile');
3+
var $templateRequestMinErr = minErr('$templateRequest');
44

55
/**
66
* @ngdoc provider

0 commit comments

Comments
 (0)