I'm quite new to AngularJs. In initial chapters itself I see $scope being used, like inside a controller.
<script>
var app = angular.module('app1', []);
app.controller('ctrl1', function($scope) {
$scope.fn = "John";
$scope.ln = "Parker";
});
</script>
If I replace the function parameter $scope with $s or so, then the code doesn't work. Why is that?
I mean it looks like we are passing a callback function or so, then why does the parameter name matter?
Please help.
Thanks in advance
Balu