I've been looking at some Javascript/AngularJS code and something that stood out to me was this:
var searchModel = $scope.searchModel = new SearchModel('id');
I haven't seen that before and I haven't been able to find a good explanation online for it. I was wondering if someone could tell me exactly what's going on with this code?