This is as basic of an example if I ever saw one, but yet, it doesn't work.
When I attempt to open the dialog I can a blank sheet opening up instead and the following error is printed to the browser console:
Yeserday, I found out that the dialogService from previous versions of Umbraco is now called editorService (doesn't say so on the official doc pages). So I'm wondering, have they disabled the ability to open custom dialogs, or am I using the wrong thing?
Let me brief here, i have upgraded from v7.15.2 to v8.6.4, and their are lot of custom app plugins written in older version, So as part of migration, this is not working.
If im not mistaken, the $scope object is just a public object on which you can attach other objects. So if dialogOptions is undefined, that means that it hasn't been added to the $scope object yet.
I am unfamiliar with what has changed from v7 to v8 in regards to $scope. So unfortunately I cannot help you.
I suggest you log the entire $scope object in your controller to see what it contains
V8: Unable to open a simple dialog
I'm trying to open a simple dialog using the "editorService" injected into my angular controller.
dialog.html
This is as basic of an example if I ever saw one, but yet, it doesn't work. When I attempt to open the dialog I can a blank sheet opening up instead and the following error is printed to the browser console:
Yeserday, I found out that the dialogService from previous versions of Umbraco is now called editorService (doesn't say so on the official doc pages). So I'm wondering, have they disabled the ability to open custom dialogs, or am I using the wrong thing?
Appreciate any help I could get.
// M
try this. if you want a larger dialog, leave off the size param.
HI Mathias,
Do this got fixed, i am also facing the same issue..
Appreciate the help on this.
Thanks,
Gurumurthy J V
Gurumurthy, try what Seanrock suggested above.
This was so long ago that I don't remember how I got it to work
Yes, i tried that, now the dialog opens, but again still some more error on angular.copy()
$scope.dialogOptions. is undefined, is this changed in v8 ?
Getting below console error TypeError: Cannot read property 'controlValue' of undefined
you need to provide more of your code in order for me to try and help you
Let me brief here, i have upgraded from v7.15.2 to v8.6.4, and their are lot of custom app plugins written in older version, So as part of migration, this is not working.
$scope.settings = angular.copy($scope.dialogOptions.controlValue) || $scope.defaultSettings;
scope.dialogOptions coming as "undefined" in v8, but not in v7.. is this some ting changed in v8 ?
the dialogOptions some thing not available in $scope of v8 object ?
so, due to this, i am not able to view the custom properties in the dialog which is opened.
If im not mistaken, the $scope object is just a public object on which you can attach other objects. So if dialogOptions is undefined, that means that it hasn't been added to the $scope object yet.
I am unfamiliar with what has changed from v7 to v8 in regards to $scope. So unfortunately I cannot help you.
I suggest you log the entire $scope object in your controller to see what it contains
Best of luck!
Does anyone able to resolve this I am getting same issue ?
is working on a reply...