Matteo Scandolo | 9d7940c | 2017-01-19 18:28:43 -0800 | [diff] [blame] | 1 | import './side-panel.scss'; |
| 2 | import {IXosSidePanelService} from './side-panel.service'; |
| 3 | |
| 4 | class 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 | |
| 21 | export const xosSidePanel: angular.IComponentOptions = { |
| 22 | template: require('./side-panel.html'), |
| 23 | controllerAs: 'vm', |
| 24 | controller: XosSidePanelController |
| 25 | }; |