Passing parameters to AngularJS when opening a view using the MenuItem LaunchDialogView
Hi All,
I am using a custom Tree in the Umbraco back office and one of my right click context MenuItem items should use the LaunchDialogView method to display a dialogs.
The following code seems to render the dialog view, but I can't seem to access the parameter being passed in the URL. I am also not sure if this is the "right" way pass data from the tree controller to the dialog?
Passing parameters to AngularJS when opening a view using the MenuItem LaunchDialogView
Hi All,
I am using a custom Tree in the Umbraco back office and one of my right click context MenuItem items should use the LaunchDialogView method to display a dialogs.
The following code seems to render the dialog view, but I can't seem to access the parameter being passed in the URL. I am also not sure if this is the "right" way pass data from the tree controller to the dialog?
Best regards,
Chris
Thanks to Ben Howarth for pointing me in the right direction via a Skype chat.
For anyone else who wants to know the answer, you need to use the following:
In the TreeController:
And in the view AngularJS controller:
Cheers,
Chris
is working on a reply...