Tuesday, 10 September 2013

Angular Link Function: $Scope vs Scope

Angular Link Function: $Scope vs Scope

In angular directives I've seen in tutorials either
link: function($scope,$element,attrs)
or
link: function(scope,element,attrs)
Now I know that the '$' means a service in angular , does this hold here ?
What exactly is the difference between $scope and scope ? Same goes to
element vs $element

No comments:

Post a Comment