blob: 4d400f4af5ae3b1aec39bf09b0c382dce815ad5f [file] [log] [blame]
Matteo Scandolo9d7940c2017-01-19 18:28:43 -08001import './side-panel.scss';
2import {IXosSidePanelService} from './side-panel.service';
3
4class XosSidePanelController {
5
6 static $inject = ['XosSidePanel'];
7
8 constructor (
9 private XosSidePanel: IXosSidePanelService
10 ) {}
11
12 public close() {
13 this.XosSidePanel.close();
14 }
15
16 public open() {
17 this.XosSidePanel.open();
18 }
19}
20
21export const xosSidePanel: angular.IComponentOptions = {
22 template: require('./side-panel.html'),
23 controllerAs: 'vm',
24 controller: XosSidePanelController
25};