17 lines
502 B
JavaScript
17 lines
502 B
JavaScript
|
import ngModule from '../../module';
|
||
|
import template from './submit.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'
|
||
|
})
|
||
|
};
|
||
|
}
|
||
|
ngModule.directive('vnSubmit', directive);
|