Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
I have created a macro using AngularJS and have my own Controller.
I would like to somehow extend the $scope.saveAndPublish function from umbraco.controller.js file so when a user publishes a page my code runs too.
Is this possible? I dont really want to hack into the umbraco.controller.js code as the next time there is an Umbraco update this code will need to be readded.
not sure if that is really a good idea.
Think something like that can be done with interceptors. But not tried it myself so not really an example at hand.
Cool - I have looked into Interceptors and it looks good - just wondering if it is possible to get the Controller scope in the Interceptor?
not sure as I haven't done it myself. :)
Maybe someone else has an idea.
is working on a reply...
Write your reply to:
Image will be uploaded when post is submitted