Hi,
I’m try use $cordovaPreferences with cordova-plugin-app-preferences but show this error:
Error: [$injector:unpr] Unknown provider: $cordovaPreferencesProvider <- $cordovaPreferences <- AppCtrl
http://errors.angularjs.org/1.4.3/$injector/unpr?p0=%24cordovaPreferencesProvider%20<-%20%24cordovaPreferences%20<-%20AppCtrl at http://xxx.xxx.xx.xxx:8100/lib/ionic/js/ionic.bundle.js:8900:12
This is my controller:
angular.module(‘starter.controllers’, []).controller(‘AppCtrl’, function($scope, $ionicModal, $ionicPopup, $timeout, $ionicPlatform, $cordovaPreferences) {
$scope.doLogin = function() {
$ionicPlatform.ready(function() {
$cordovaPreferences.store('key', 'myMagicValue').success(function(value) {
alert("Success: " + value);
}).error(function(error) {
alert("Error: " + error);
});
});
};
}
Thanks!