My experience with AngularJs is very limited. In one of my projects, I need to display dynamic content on a page that changes based on the database values retrieved via an HTTP GET request.
Before implementing the entire functionality, I decided to test it locally using a local variable. Unfortunately, it does not seem to be working as expected. Can anyone provide suggestions on how to troubleshoot and fix this issue?
angular.module('MyApp').controller('HomeCtrl', function HomeCtrl($scope, $alert, $auth, $location) {
Counter = 10;
Counter = Counter + 1;
$scope.user = {};
$scope.user.counter = Counter;
});
HomeCtrl($scope, $alert, $auth, $location);