I have attached a picture of the click action I want to run from the Chrome console, with various values passed. The button is highlighted in gray top right in the inspect element. It is the
savePublish() function I want to learn how to access/use.
The button element is inside a
<div ng-controller="ProductEditCtrl as ctrl" .. > container, but of course there are other controller wrappers on the page aliased as
My question is, how do I access the
savePublish() method directly from the Chrome console? And a bonus question-answer would be, how would I load the
ProductEditCtrl controller and then call the savePublish method on a different page?