salix/client/core/src/icon-button/icon-button.js

18 lines
482 B
JavaScript
Raw Normal View History

import {module as _module} from '../module';
2017-02-07 13:34:26 +00:00
import * as resolveFactory from '../lib/resolveDefaultComponents';
import * as util from '../lib/util';
const _NAME = 'iconButton';
export const NAME = util.getName(_NAME);
directive.$inject = [resolveFactory.NAME];
export function directive(resolve) {
return {
restrict: 'E',
template: function(_, attr) {
return resolve.getTemplate(_NAME, attr);
}
};
}
_module.directive(NAME, directive);