-
Notifications
You must be signed in to change notification settings - Fork 209
directive wrapping kendo window cannot access to controller scope #314
Comments
I've had the same problem in the past and as I understand it the problem is that Kendo appends the window at the end of the |
@jaybe78 Again, a few problems with your code:
scope.popupcontent = scope.$parent.popupcontent;
$scope.toto.title($scope.popuptitle); Here's the updated plunker: |
@mishoo Obviously here it's different: |
Looks like a serious issue. Reopening. |
@mishoo
Watching the data alone doesn't work for some reason, since when I open my popup the change is not notified in my directive... I debugged my directive and noticed that it doesn't go in the function which watches my data after doing:
|
You can use However, I couldn't find a good solution for the transclusion scope. It looks like the problem is the double-transclusion (after our custom directive runs, the kendoWindow directive transcludes as well). Found this year-old Angular issue which seems related: angular/angular.js#1809 I'm closing it, it's not really an angular-kendo issue. |
@mishoo I'm gonna use the workaround provided on stackoverflow to fix it. |
Have you checked this out I created a sample from your plunkr: |
I have a directive which wraps a kendo window, and I'd like to set title and content
from variables stored in my controller.
However, It seems the modal doesn't have access to my controller's scope,.
I have also noticed that if I change the title of the popup from my controller, it doesn't change in the popup itself. Apparently the variable is not bound to the popup.
Please have a look
http://plnkr.co/edit/Q9xtMusidLdBctpafHak?p=preview
The text was updated successfully, but these errors were encountered: