Skip to content

Commit 8bf5654

Browse files
committed
docs(ngAnimate): update broken callback ngView example
1 parent a689ce6 commit 8bf5654

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/ngAnimate/module.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -467,12 +467,12 @@
467467
* anymore.)
468468
*
469469
* In addition to the animation promise, we can also make use of animation-related callbacks within our directives and controller code by registering
470-
* an event listener using the `$animate` service. Let's say for example that an animation was triggered on our `ng-view` element and we wanted our
470+
* an event listener using the `$animate` service. Let's say for example that an animation was triggered on our view
471471
* routing controller to hook into that:
472472
*
473473
* ```js
474474
* ngModule.controller('HomePageController', ['$animate', function($animate) {
475-
* $animate.on('enter', '[ng-view]', function(element) {
475+
* $animate.on('enter', ngViewElement, function(element) {
476476
* // the animation for this route has completed
477477
* }]);
478478
* }])

0 commit comments

Comments
 (0)