Is it possible to call AngularJS controller function from console (Chrome Developer Tools console)?
e.g.
app.controller('AddCtrl', ['$scope', function ($scope) {
$scope.save = function(){
// do stuff here - call it from console
};
}]);
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…