2017-01-31 13:13:06 +00:00
|
|
|
import {module as _module} from '../module';
|
2017-06-13 11:08:06 +00:00
|
|
|
// import * as resolveFactory from '../lib/resolveDefaultComponents';
|
2017-02-07 13:34:26 +00:00
|
|
|
import * as util from '../lib/util';
|
2017-01-31 13:13:06 +00:00
|
|
|
|
|
|
|
const _NAME = 'iconButton';
|
|
|
|
export const NAME = util.getName(_NAME);
|
2017-06-13 11:08:06 +00:00
|
|
|
/*
|
2017-01-31 13:13:06 +00:00
|
|
|
directive.$inject = [resolveFactory.NAME];
|
|
|
|
export function directive(resolve) {
|
|
|
|
return {
|
|
|
|
restrict: 'E',
|
|
|
|
template: function(_, attr) {
|
|
|
|
return resolve.getTemplate(_NAME, attr);
|
|
|
|
}
|
|
|
|
};
|
|
|
|
}
|
2017-06-13 11:08:06 +00:00
|
|
|
_module.directive(NAME, directive); */
|
|
|
|
|
|
|
|
_module.component(NAME, {
|
|
|
|
template: require('./icon-button.html'),
|
|
|
|
bindings: {
|
|
|
|
icon: '@',
|
|
|
|
className: '<?',
|
|
|
|
enabled: '<?',
|
|
|
|
label: '@?'
|
|
|
|
},
|
|
|
|
controllerAs: 'ib'
|
|
|
|
});
|
|
|
|
|