javascript - Getting typeahead to work in an Angular template? -
i have partial html being routed to, template , custom controller. code snippet in angular template working is:
<input type="text" typeahead=val val in getvalue($viewvalue)>
however, never enters function getvalue(), while other functions in controller seem okay. when take typeahead out of angular template/partial, seems work. why , how fix it?
you need have ng-model
attribute use typeahead
directive angularui, if don't need bind anything.
change markup similar following:
<input type="text" ng-model="typeaheadval" typeahead="val val in getvalue($viewvalue)">
Comments
Post a Comment