We are trying to enable a feature in html input tag using angular1.x custom directive as attribute,will it work? As per my research i have seen everywhere that custom directive which behaves as attribute always works with div tag.Please give some pointers.we don't want to assign anything into ng-model.we have created a directive which we want to use with input tag as attribute.
Asked
Active
Viewed 38 times
0
-
Read [AngularJS Developer Guide - Creating Custom Directives](https://docs.angularjs.org/guide/directive). – georgeawg Sep 03 '17 at 16:43
-
You can use custom directive as an attribute. Ex.
– Nikita Sep 03 '17 at 16:44 -
What would like to do with this directive? – krutkowski86 Sep 03 '17 at 16:52
-
krutkowski86-it will solve purpose for tyepahead feature. – aks Sep 03 '17 at 18:38
-
Nikita- we want to use with input tag like .yours is element way. – aks Sep 03 '17 at 18:39