2017-01-31 13:13:06 +00:00
|
|
|
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';
|
2017-01-31 13:13:06 +00:00
|
|
|
|
|
|
|
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);
|