File tree Expand file tree Collapse file tree 1 file changed +6
-9
lines changed
Expand file tree Collapse file tree 1 file changed +6
-9
lines changed Original file line number Diff line number Diff line change 363363 * ```js
364364 * myModule.animation('.slide', ['$animateCss', function($animateCss) {
365365 * return {
366- * enter: function(element, doneFn ) {
366+ * enter: function(element) {
367367* // this will trigger `.slide.ng-enter` and `.slide.ng-enter-active`.
368- * var runner = $animateCss(element, {
368+ * return $animateCss(element, {
369369 * event: 'enter',
370370 * structural: true
371- * }).start();
372- * runner.done(doneFn);
371+ * });
373372 * }
374373 * }
375374 * }]);
384383 * ```js
385384 * myModule.animation('.slide', ['$animateCss', function($animateCss) {
386385 * return {
387- * enter: function(element, doneFn ) {
388- * var runner = $animateCss(element, {
386+ * enter: function(element) {
387+ * return $animateCss(element, {
389388 * event: 'enter',
390389 * structural: true,
391390 * addClass: 'maroon-setting',
392391 * from: { height:0 },
393392 * to: { height: 200 }
394- * }).start();
395- *
396- * runner.done(doneFn);
393+ * });
397394 * }
398395 * }
399396 * }]);
You can’t perform that action at this time.
0 commit comments