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

docs(ngInclude): add warning to onload function cause breaks in IE11 #13042

Closed
wants to merge 2 commits 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
6 changes: 6 additions & 0 deletions src/ng/directive/ngInclude.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,12 @@
* make sure you wrap it in **single** quotes, e.g. `src="'myPartialTemplate.html'"`.
* @param {string=} onload Expression to evaluate when a new partial is loaded.
*
* <div class="alert alert-warning">
* **Note:** Seems like the onload attribute is being handled differently by different browsers,
* like with SVG elements in IE11. To fix this, you can instead use `data-onload`
* in ng-include and it will work, because directives normalize the attribute names.
* </div>
*
* @param {string=} autoscroll Whether `ngInclude` should call {@link ng.$anchorScroll
* $anchorScroll} to scroll the viewport after the content is loaded.
*
Expand Down