Novice to AngularJS. I am wondering if there is something equivalent to $ in Angular. I found that $scope
object is an instance of function constructor Scope
.I have to say that I created $scope
without defining a controller, just by:
var $scope = angular.element($('#quantity')).scope();
where quantity is the id of an element. My question is how to access Scope
function object. I want e.g.
$scope.__proto__===Scope.prototype
However in the right, Scope
is unknown. Where does it belong to? Which is its context?