Promise value not put into template after resolved
im fairly new to javascript and promises, so I might not get all the basic concepts,but im trying. I have a function in my model that checks the friendshiptstatus: friendShipStatus: function() { var self = this; return Ember.RSVP.all([this.container.lookup('user:current'), this.get('myFriends'), this.get('friendsWithMe'), this.get('friends')]).then(function(result){ var user = result[0], myFriends = result[1], friendsWithMe = result[2], friends = result[3] if(friends.contains(user)){ return 2; } else if(friendsWithMe.contains(user)){ return 4; } else if(myFriends.contains(user)){ return 1; }