You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Apr 12, 2024. It is now read-only.
This is a pretty straightforward issue. When the template cache has an entry for a template set to empty string (""), ng-include of that template by name (e.g. ng-include="foo.html") is smart enough to tell the difference between an empty template and a non-existent one, because it won't attempt to fetch the template with an XHR.
However, if the ngInclude is used in conjunction with an expression that invokes a function (e.g. ng-include="templateFor('footer')"), an empty template will result in an XHR.
This may seem like a minor quibble, but I'm actually experiencing some extremely bizarre downstream behavior in a real application due to this (which utlimately causes Chrome to lock up because it's hitting the digest limit repeatedly).
The text was updated successfully, but these errors were encountered:
Plnkr Demo
This is a pretty straightforward issue. When the template cache has an entry for a template set to empty string (
""
), ng-include of that template by name (e.g.ng-include="foo.html"
) is smart enough to tell the difference between an empty template and a non-existent one, because it won't attempt to fetch the template with an XHR.However, if the ngInclude is used in conjunction with an expression that invokes a function (e.g.
ng-include="templateFor('footer')"
), an empty template will result in an XHR.This may seem like a minor quibble, but I'm actually experiencing some extremely bizarre downstream behavior in a real application due to this (which utlimately causes Chrome to lock up because it's hitting the digest limit repeatedly).
The text was updated successfully, but these errors were encountered: