I'm just having a first go at creating a custom item on the context menu. So I have all the necessary stuff in place to add to the menu and have a "hello world" scenario working.
Trying to build a function to delete all child nodes as an example.
My question is this.... Why am I calling up a controller in angular? and not using a call to a controller in c# . I'm now having to write everything in JS which is a real ball ache, to be honest.
I've written a series of helper function for my intended goal in C# already can I call them, if so how? By using Ajax? By referencing page calling and c# MVC controller in the AdditionalData.Add call?
I'd create a simple AngularJs service to post the current page ID to your code, then manage the deletion on the server.
The backoffice is all AngularJs, so you'll have to write at least a little. A controller where you inject your new service, button to click in the view, bound to controller function to make the service call.
Custom Context Menu Item
Hi,
I'm just having a first go at creating a custom item on the context menu. So I have all the necessary stuff in place to add to the menu and have a "hello world" scenario working.
Trying to build a function to delete all child nodes as an example.
My question is this.... Why am I calling up a controller in angular? and not using a call to a controller in c# . I'm now having to write everything in JS which is a real ball ache, to be honest.
I've written a series of helper function for my intended goal in C# already can I call them, if so how? By using Ajax? By referencing page calling and c# MVC controller in the AdditionalData.Add call?
Any ideas would be very useful. Cheers Rich
I'd create a simple AngularJs service to post the current page ID to your code, then manage the deletion on the server.
The backoffice is all AngularJs, so you'll have to write at least a little. A controller where you inject your new service, button to click in the view, bound to controller function to make the service call.
is working on a reply...