function CardController(cardFactory, listFactory) {

    this.isEditing = false;
    this.editingCard = null;

    this.lists = listFactory.getLists();
    
    this.editCard = function () {
        this.isEditing = true;
        this.editingCard = angular.copy(this.card);
    };

    this.updateCard = function () {
        var list = _.filter(this.lists, {id: this.editingCard.list_id})[0];
        
        cardFactory.updateCard(this.editingCard, list);
        this.editingCard = null;
        this.isEditing = false;
    };
}
CardController.$inject = ['cardFactory', 'listFactory'];
    app.component('trelloCard', {
    templateUrl: 'js/components/card.html',
    controller: CardController,
    bindings: {
        card: '<',
        onDelete: '&'
    }
});
@@ -41,20 +41,28 @@
 tFactory
+, $scope
 ) %7B%0A
-
 %0A    thi
@@ -331,17 +331,28 @@
     var 
-l
+destinationL
 ist = _.
@@ -406,24 +406,16 @@
 d%7D)%5B0%5D;%0A
-        
 %0A       
@@ -460,14 +460,189 @@
 rd, 
-list);
+destinationList);%0A        //listFactory.triggerCardUpdate(%7B listIds: %5B this.editingCard.list_id, list.id %5D %7D);//todo emit event%0A        $scope.$emit('updateCard', destinationList);%0A
 %0A   
@@ -712,16 +712,16 @@
    %7D;%0A%7D%0A
-
 CardCont
@@ -766,16 +766,26 @@
 Factory'
+, '$scope'
 %5D;%0A    a

add emit method