Moved my angular example to chat

This commit is contained in:
Max Lynch
2013-08-28 17:42:37 -05:00
parent cd3b3731a8
commit 888cba9d35
4 changed files with 789 additions and 0 deletions

18
example/angular/chat/app.js vendored Normal file
View File

@ -0,0 +1,18 @@
var chat = angular.module('Chat', ['ngTouch']);
chat.controller('MenuCtrl', function($scope) {
$scope.isPanelShowing = false;
});
chat.controller('RoomsCtrl', function($scope) {
$scope.rooms = [
{ name: 'All', key: 'all' },
{ name: 'Marketing', key: 'marketing' }
];
$scope.openPanel = function() {
console.log('Open panel');
$scope.isPanelShowing = true;
};
});