I\'ve been using var and $scope.varname and both work fine in AngularJS. I was wondering if there was a difference between the two functionally, and what best practice was i
Yes! $scope variables bind to the view where as var does not and is local to the function it was declared in!
$scope
var
var x = 3; $scope.y = 3; {{x}} - undefined {{y}} - 3