I have an Ionic app and I'd like to include the node module angular-base64 to use in my controllers, or even wrap inside an angular service etc. I've gone ahead and ran
npm install angular-base64
Which went ahead and installed the folder containing angular-base64.min.js
file inside /myIonicApp/node_modules/
. So the full path to the file is /myIonicApp/node_modules/angular-base64/angular-base64.min.js
.
However when I try and make use of the module in one of my controllers like this:
app.controller('myController', ['$scope', '$base64',
function($scope, $base64) {
//$base64...
}
]);
It has no idea what I'm talking about. Do I have to do something else to get this to work? Perhaps something in my app.js
?