I am new to ionic-framework, trying to implement shared prefrences in ionic platform for which cordovaPreferences is the plugin:
- I downloaded plugin with cordova plugin add cordova-plugin-app-preferences
- installed ngCordova
- added ng-cordova.js in index.html before cordova.js
- added ngCordova' in my starter module
- injected $cordovaPreferences in controller
Then I am using:
$cordovaPreferences.store('key', 'myMagicValue')
.success(function(value) {
alert("Success: " + value);
})
.error(function(error) {
alert("Error: " + error);
})
But an alert is generated saying "Plugin not enabled":
Please Help.
