I have 2 HTML pages sitting under the App_Plugins folder for a custom section plugin using Umbraco 8.
I have a create page and edit page, almost doing identical tasks but the names clarify their main roles.
For that reason i want to use one Controller. After reading some documentation it seems i can use $routeProvider so each page could use the correct controller.
I tried adding this to my controller but so far it doesnt work example:
Adding $routeProvider to my custom controller
I have 2 HTML pages sitting under the App_Plugins folder for a custom section plugin using Umbraco 8.
I have a create page and edit page, almost doing identical tasks but the names clarify their main roles.
For that reason i want to use one Controller. After reading some documentation it seems i can use $routeProvider so each page could use the correct controller.
I tried adding this to my controller but so far it doesnt work example:
I wasnt sure how to add this into my controller for it to work or compare the edit parameter to be passed in?
Can anyone offer any guidance?
is working on a reply...