Skip to content

Commit

Permalink
feat(angular): expose Ionic Gestures via GestureController (#19864)
Browse files Browse the repository at this point in the history
* expose gestures thru angular

* run linter
  • Loading branch information
liamdebeasi committed Nov 8, 2019
1 parent fce3e24 commit 48a7662
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 1 deletion.
1 change: 1 addition & 0 deletions angular/src/index.ts
Expand Up @@ -31,6 +31,7 @@ export { NavController } from './providers/nav-controller';
export { DomController } from './providers/dom-controller';
export { Config } from './providers/config';
export { AnimationController } from './providers/animation-controller';
export { GestureController } from './providers/gesture-controller';

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

@Injectable({
providedIn: 'root',
})
export class GestureController {
/**
* Create a new gesture
*/
create(opts: GestureConfig): Gesture {
return createGesture(opts);
}
}
2 changes: 1 addition & 1 deletion core/src/interface.d.ts
Expand Up @@ -34,7 +34,7 @@ export * from './components/virtual-scroll/virtual-scroll-interface';
export { Animation, AnimationBuilder } from './utils/animation/animation-interface';
export * from './utils/overlays-interface';
export * from './global/config';
export { Gesture, GestureDetail } from './utils/gesture';
export { Gesture, GestureConfig, GestureDetail } from './utils/gesture';

// Global aux types
export type TextFieldTypes = 'date' | 'email' | 'number' | 'password' | 'search' | 'tel' | 'text' | 'url' | 'time';
Expand Down

0 comments on commit 48a7662

Please sign in to comment.