Files
habitica/public/js/controllers/headerCtrl.js
Tyler Renelle 62b2d5780b [#1710] some simplification on Groups memoization. No need for all that
special handling of Header Party, just have it's own controller and do
specific-handling. Also, removing MenuCtrl & StatsCtrl - they weren't
used TMK, I think twas a vestige of mobile. @paglias give that a gander
2013-11-01 20:15:04 -07:00

11 lines
276 B
JavaScript

"use strict";
habitrpg.controller("HeaderCtrl", ['$scope', 'Groups', 'User',
function($scope, Groups, User) {
$scope.party = Groups.party();
$scope.partyMinusSelf = _.filter($scope.party, function(member){
return member._id !== User.user._id;
});
}
]);