This repository was archived by the owner on Apr 12, 2024. It is now read-only.
This repository was archived by the owner on Apr 12, 2024. It is now read-only.
Current $templateRequest implementation breaks $templateCache decorators #16225
Closed
Description
I'm submitting a ...
- bug report
- feature request
- other (Please do not submit support requests here (see above))
Current behavior:
It is impossible now to decorate $templateCache.put()
Expected / new behavior:
Expected to be working as per documentation
Minimal reproduction of the problem with instructions:
currently the code is
.then(function(response) {
$templateCache.put(tpl, response.data);
return response.data;
}
which should be
.then(function(response) {
return $templateCache.put(tpl, response.data);
}
instead in order to allow proper $templateCache.put()
decoration
AngularJS version: master branch
Browser: [all | Chrome XX | Firefox XX | Edge XX | IE XX | Safari XX | Mobile Chrome XX | Android X.X Web Browser | iOS XX Safari | iOS XX UIWebView | iOS XX WKWebView ]
Anything else: nope