import ngModule from '../../module'; import Dialog from '../dialog'; import template from './confirm.html'; export default class Confirm extends Dialog { constructor($element, $, $transclude) { super($element, $, $transclude); let $template = angular.element(template); this.fillSlot('body', $template.find('tpl-body')); this.fillSlot('buttons', $template.find('tpl-buttons')); } } ngModule.vnComponent('vnConfirm', { controller: Confirm, transclude: true, bindings: { question: '@', message: '@?' } });