mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-11-07 06:57:02 +08:00
Angular and taweaks
This commit is contained in:
19
example/angular/chat/app.js
vendored
19
example/angular/chat/app.js
vendored
@ -9,10 +9,19 @@ chat.controller('RoomsCtrl', function($scope) {
|
||||
{ name: 'All', key: 'all' },
|
||||
{ name: 'Marketing', key: 'marketing' }
|
||||
];
|
||||
|
||||
$scope.openPanel = function() {
|
||||
console.log('Open panel');
|
||||
$scope.isPanelShowing = true;
|
||||
};
|
||||
});
|
||||
|
||||
// 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'
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user