Skip to content

Instantly share code, notes, and snippets.

@Greg0
Last active April 16, 2016 08:05
export class HomeController {
$injector: ng.auto.IInjectorService;
$cordovaGeolocation: ngCordova.IGeolocationService;
constructor(private $injector:ng.auto.IInjectorService, public $scope:ng.IScope) {
'ngInject';
this.$injector = $injector;
this.$scope = $scope;
this.$cordovaGeolocation = this.$injector.get('$cordovaGeolocation');
this.$scope.$on('$ionicView.enter', () => this.onEnter());
}
onEnter() {
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment