18 lines
538 B
JavaScript
18 lines
538 B
JavaScript
|
import ngModule from '../../module';
|
||
|
import template from './button.html';
|
||
|
|
||
|
directive.$inject = ['vnTemplate'];
|
||
|
export default function directive(vnTemplate) {
|
||
|
return {
|
||
|
restrict: 'E',
|
||
|
template: (_, $attrs) =>
|
||
|
vnTemplate.get(template, $attrs, {
|
||
|
label: 'Submit',
|
||
|
className: 'mdl-button mdl-js-button mdl-button--raised mdl-button--colored',
|
||
|
enabled: 'true',
|
||
|
typeName: 'button'
|
||
|
})
|
||
|
};
|
||
|
}
|
||
|
ngModule.directive('vnButton', directive);
|