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() { } }