mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-11-07 06:57:02 +08:00
Moved my angular example to chat
This commit is contained in:
18
example/angular/chat/app.js
vendored
Normal file
18
example/angular/chat/app.js
vendored
Normal 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;
|
||||
};
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user