Hey there, I have a question for anyone who knows: Is it possible to call an AngularJs method from regular JavaScript? =) Thanks in advance!
myApp.controller("someController", ["$scope", function($scope) {
// Some code goes here
$scope.a = valueA;
$scope.b = valueB;
});
Later in the code, I want to run a function that, if successful, will trigger an IF statement and then execute my AngularJS controller or something similar.
function Clicked() {
if (clicked correctly) {
// Run my Controller and send some data to be added to the DOM
}