import ngModule from '../../module'; import Popover from '../popover/popover'; export default class Menu extends Popover { $postLink() { super.$postLink(); this.popover.addEventListener('click', () => this.hide()); } } ngModule.component('vnMenu', { template: require('../popover/popover.html'), controller: Menu, transclude: true, bindings: { onOpen: '&?', onClose: '&?' } });