I am in the stage of putting user name once user login successfully in nav-tab right side in chapter 8.
I see this implementation example.
angular.module('app')
.controller('ApplicationCtrl', function($scope){
$scope.$on('login', function(_, user){
$scope.currentUser = user
})
})
Hi,
I am in the stage of putting user name once user login successfully in nav-tab right side in chapter 8.
I see this implementation example. angular.module('app') .controller('ApplicationCtrl', function($scope){ $scope.$on('login', function(_, user){ $scope.currentUser = user }) })
What is _ being used for for this case?