Skip to content

Commit

Permalink
Step 5.2: Add new chat button logic
Browse files Browse the repository at this point in the history
  • Loading branch information
DAB0mB authored and Dotan Simha committed Nov 23, 2016
1 parent df1bf23 commit 28b89a4
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion client/scripts/controllers/chats.controller.js
Expand Up @@ -12,9 +12,14 @@ export default class ChatsCtrl extends Controller {
});
}

showNewChatModal() {
this.NewChat.showModal();
}

remove(chat) {
Chats.remove(chat._id);
}
}

ChatsCtrl.$name = 'ChatsCtrl';
ChatsCtrl.$name = 'ChatsCtrl';
ChatsCtrl.$inject = ['NewChat'];

0 comments on commit 28b89a4

Please sign in to comment.