Skip to content

Commit

Permalink
feat(angular): Expose Ionic Animations via the AnimationController (#…
Browse files Browse the repository at this point in the history
…19745)

* Add animation controller for angular

* remove empty constructor

* sync with master
  • Loading branch information
liamdebeasi committed Oct 29, 2019
1 parent 7d41715 commit 67a7e23
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
1 change: 1 addition & 0 deletions angular/src/index.ts
Expand Up @@ -30,6 +30,7 @@ export { ToastController } from './providers/toast-controller';
export { NavController } from './providers/nav-controller';
export { DomController } from './providers/dom-controller';
export { Config } from './providers/config';
export { AnimationController } from './providers/animation-controller';

// ROUTER STRATEGY
export { IonicRouteStrategy } from './util/ionic-router-reuse-strategy';
Expand Down
14 changes: 14 additions & 0 deletions angular/src/providers/animation-controller.ts
@@ -0,0 +1,14 @@
import { Injectable } from '@angular/core';
import { Animation, createAnimation } from '@ionic/core';

@Injectable({
providedIn: 'root',
})
export class AnimationController {
/**
* Create a new animation
*/
create(animationId?: string): Animation {
return createAnimation(animationId);
}
}

0 comments on commit 67a7e23

Please sign in to comment.