angular.module('appCtrl',[],function($scope,$http,$interval){
$scope.tick = 100;
$interval(function(){
$scope.tick -= 1;
},1000);
})
how to implement a constructor function like this? and provide variables in it like $http and $scope? I tried, but this does not work like angular :/
how does angular listens for change in $scope variable and recompiles it?