Cannot add ngCordova alerts

I followed the example here and added the plugin to my project via the command. But when I try to do the example angular gives me an error,

Error: [$injector:unpr] Unknown provider: $cordovaDialogsProvider <- $cordovaDialogs <- LoginCtrl

I think the issue lies in the fact that I have not included cordovaDialogs as a dependency in the app module. But I don’t know what to include and how.

Did do injected ngCordova?

angular.module('myApp', ['ngCordova'])

And $cordovaDialogs in the controller?

module.controller('MyCtrl', function($scope, $cordovaDialogs)

Can you show some code? Also let me know if you used the custom build tool, sometimes there are issues with that.

Totally forgot including ngCordova, thank you! I am however having some issues with the alert dialogs themselves. In the iPhone simulator for example, the alert shows but does not use the title provided with the function call. In Ionic view on the other hand, the alerts are not shown at all.