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

Commit

Permalink
docs(ngAnimate): simplify $animateCss example code
Browse files Browse the repository at this point in the history
  • Loading branch information
matsko committed Oct 5, 2015
1 parent 00bf218 commit b9ab887
Showing 1 changed file with 6 additions and 9 deletions.
15 changes: 6 additions & 9 deletions src/ngAnimate/module.js
Original file line number Diff line number Diff line change
Expand Up @@ -363,13 +363,12 @@
* ```js
* myModule.animation('.slide', ['$animateCss', function($animateCss) {
* return {
* enter: function(element, doneFn) {
* enter: function(element) {
* // this will trigger `.slide.ng-enter` and `.slide.ng-enter-active`.
* var runner = $animateCss(element, {
* return $animateCss(element, {
* event: 'enter',
* structural: true
* }).start();
* runner.done(doneFn);
* });
* }
* }
* }]);
Expand All @@ -384,16 +383,14 @@
* ```js
* myModule.animation('.slide', ['$animateCss', function($animateCss) {
* return {
* enter: function(element, doneFn) {
* var runner = $animateCss(element, {
* enter: function(element) {
* return $animateCss(element, {
* event: 'enter',
* structural: true,
* addClass: 'maroon-setting',
* from: { height:0 },
* to: { height: 200 }
* }).start();
*
* runner.done(doneFn);
* });
* }
* }
* }]);
Expand Down

0 comments on commit b9ab887

Please sign in to comment.