Add autocomplete attr to component form

Signed-off-by: gconsidine <greg@gregconsidine.com>
This commit is contained in:
gconsidine
2017-10-02 17:06:07 -04:00
parent 40f57b2552
commit 4955dd9ab3
3 changed files with 5 additions and 4 deletions

View File

@@ -7,7 +7,7 @@
</at-tab-group> </at-tab-group>
<at-panel-body> <at-panel-body>
<at-form state="vm.form"> <at-form state="vm.form" autocomplete="off">
<at-input-text col="4" tab="1" state="vm.form.name"></at-input-text> <at-input-text col="4" tab="1" state="vm.form.name"></at-input-text>
<at-input-text col="4" tab="2" state="vm.form.description"></at-input-text> <at-input-text col="4" tab="2" state="vm.form.description"></at-input-text>
<at-input-lookup col="4" tab="3" state="vm.form.organization"></at-input-lookup> <at-input-lookup col="4" tab="3" state="vm.form.organization"></at-input-lookup>

View File

@@ -209,7 +209,8 @@ function atForm () {
controllerAs: 'vm', controllerAs: 'vm',
link: atFormLink, link: atFormLink,
scope: { scope: {
state: '=' state: '=',
autocomplete: '@'
} }
}; };
} }

View File

@@ -1,7 +1,7 @@
<div> <div>
<form> <form ng-attr-autocomplete="{{::autocomplete || undefined }}">
<div class="row"> <div class="row">
<ng-transclude></ng-transclude> <ng-transclude></ng-transclude>
</div> </div>
</form> </form>