I have this plunker with an example dialog that uses the permission attribute of the option object based on this example .
Basically, what I want to do is pass the variable title that will be used in the dialog template:
var title = "azerty";
Using the permission attribute of the dialog settings object:
resolve: {title: angular.copy(title)}
Then add it to the dialog controller and assign it to the $ scope variable:
controllers.DialogController = function($scope, dialog, title) { $scope.title = title;
But I get this error:
Error: Unknown provider: azertyProvider <- azerty
source share