Looking to display a dialog
from an angularjs controller
. Utilizing angular-ui and angular-strap
Issue encountered while injecting $dialog in Controller:
Error: [$injector:unpr] http://errors.angularjs.org/1.2.0rc1/$injector/unpr?p0=%24dialogProvider%20%3C-%20%24dialog
at Error (<anonymous>)
at https://ajax.googleapis.com/ajax/libs/angularjs/1.2.0rc1/angular.min.js:6:450
...
ApplicationResources.groovy Configuration:
angularJs { resource url:'https://ajax.googleapis.com/ajax/libs/angularjs/1.2.0rc1/angular.min.js' }
angularUI {
dependsOn 'angularJs'
dependsOn 'jquery'
dependsOn 'googleMaps'
...
}
...
User.gsp Implementation:
<html ng-app="user">
<r:require modules="bootstrapJs" />
...
</html>
EncouragementController.js with ui.bootstrap.dialog:
function EncouragementController($scope, $http, $dialog, encouragementService) {
...
EncouragementController.$inject = [ '$scope', '$http', '$dialog', 'encouragementService' ];
App.js configuration:
var user = angular.module('user', [ 'ui', '$strap.directives' ]);
Attempted solutions from StackOverflow thread on unknown provider, but unsuccessful.