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

Commit 26d1b34

Browse files
committed
docs(ngView): add known issue about asynchronously loaded ngView
Closes #14424
1 parent 7fba6b6 commit 26d1b34

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/ngRoute/directive/ngView.js

+7
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,13 @@ ngRouteModule.directive('ngView', ngViewFillContentFactory);
2626
*
2727
* The enter and leave animation occur concurrently.
2828
*
29+
* @knownIssue If `ngView` is contained in an asynchronously loaded template (e.g. in another
30+
* directive's templateUrl or in a template loaded using `ngInclude`), then you need to
31+
* make sure that `$route` is instantiated in time to capture the initial
32+
* `$locationChangeStart` event and load the appropriate view. One way to achieve this
33+
* is to have it as a dependency in a `.run` block:
34+
* `myModule.run(['$route', function() {}]);`
35+
*
2936
* @scope
3037
* @priority 400
3138
* @param {string=} onload Expression to evaluate whenever the view updates.

0 commit comments

Comments
 (0)