mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-11-06 22:29:44 +08:00
28 lines
730 B
JavaScript
28 lines
730 B
JavaScript
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' }
|
|
];
|
|
});
|
|
|
|
// TODO: Move this to a directive corresponding to this panel
|
|
// Grab the sections
|
|
var page = document.getElementById('page');
|
|
var leftPanel = document.getElementById('left-panel');
|
|
var rightPanel = document.getElementById('right-panel');
|
|
var controller = new ion.controllers.LeftRightPanelViewController({
|
|
left: leftPanel,
|
|
leftWidth: 270,
|
|
right: rightPanel,
|
|
rightWidth: 270,
|
|
center: page,
|
|
animateClass: 'ion-panel-animated'
|
|
});
|
|
|