dialogService.open doesn't render the template the second time
Hi,
I'm experiencing some troubles with the dialogService.open functionality.
The first time I open a dialog it`s all working fine, but the second time I open the dialog only the controller code is working but the template is no longer parsed.
angular.module("umbraco").controller("MemberDialogView.Controller", function ($scope, MemberResource) {
// The dialogdata contains the member
$scope.member = $scope.dialogData.member;
});
The first time I open the dialog it shows the member object in json, the second time it shows "{{member | json }}". It looks like AngularJS is not "compiling"(?) the html the second time.
Any console.logs I have in the MemberDialogView.Controller run just fine and are working as expected even the second time.
Does anyone know how or why this is not working? When I look at the examples none of them use a cleanup or parse function to rerender the html.
dialogService.open doesn't render the template the second time
Hi,
I'm experiencing some troubles with the dialogService.open functionality. The first time I open a dialog it`s all working fine, but the second time I open the dialog only the controller code is working but the template is no longer parsed.
The code for opening the dialog is as follows:
The attached view:
The dialog controller code is very basis:
The first time I open the dialog it shows the member object in json, the second time it shows "{{member | json }}". It looks like AngularJS is not "compiling"(?) the html the second time. Any console.logs I have in the MemberDialogView.Controller run just fine and are working as expected even the second time.
Does anyone know how or why this is not working? When I look at the examples none of them use a cleanup or parse function to rerender the html.
The problem arose because I passed the original scope to the dialog. After removing the scope it all worked brilliantly!
is working on a reply...