feat(angular): Expose Ionic Animations via the AnimationController (#19745)

* Add animation controller for angular

* remove empty constructor

* sync with master
This commit is contained in:
Liam DeBeasi
2019-10-29 16:14:26 -04:00
committed by GitHub
parent 7d417154c5
commit 67a7e232b9
2 changed files with 15 additions and 0 deletions

View File

@@ -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';

View File

@@ -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);
}
}