Saving the application state on cordovas pause with angular
问题 I've got a Cordova app running on my Android device to show some news retrieved from a web service. As I'm using Typescript and Angular I've got a service holding my news like so: class NewsService { news: News[]; } I'd like to save those news on Cordova's pause event, so I built a service to do that, injected it into my NewsService and added an event handler with a corresponding callback: static $inject = ["$http", "newsApp.LocalStorageService"]; constructor(private $http: ng.IHttpService,