If I have a controller such as:
myApp.controller('NewController', function ($scope, $window) {
var x = 5;
$scope.y = 5;
});
And x
and y
are going to be changed from my application, does it make any difference whether or not I declare var x
on $scope
or just declare it with var
as it is right now?