Can not get inappbroswer plugin working

I tried to install the $cordovaInAppBrowser plugin, I installed the plugin and tried to inject it in to my .module and my controller
.config(function($stateProvider, $urlRouterProvider,$cordovaInAppBrowserProvider)

and

.controller(‘helpfullinksCtrl’, function($scope, $stateParams,$cordovaInAppBrowser)

here are my installed plugins

com.ionic.keyboard 1.0.3 "Keyboard"
com.jcjee.plugins.emailcomposer 1.4.6 "Email Composer with Attachments"
org.apache.cordova.console 0.2.12 "Console"
org.apache.cordova.device 0.2.13 "Device"
org.apache.cordova.geolocation 0.3.12-dev "Geolocation"
org.apache.cordova.inappbrowser 0.5.4 “InAppBrowser”

I keep getting the following error.

Unknown provider: $cordovaInAppBrowserProvider, I copied this right out of the example from the docs
http://ngcordova.com/docs/plugins/inAppBrowser/

can anyone help me out maybe a working example

Thanks

did you included ngCordova in your app module ?

like : angular.module(‘yourApp’,[‘ionic’,‘ngCordova’])

4 Likes

Thanks, I must of missed that.