jdx / mean-sample

Sample project for Write Modern Web Apps with the MEAN Stack by Jeff Dickey
https://mean-sample.herokuapp.com
165 stars 90 forks source link

CH08, question about using '_' ? #29

Closed fkkcloud closed 9 years ago

fkkcloud commented 9 years ago

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?

jdx commented 9 years ago

nothing. _ is just a convention for an argument you won't use