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

Popular posts from this blog

node.js - Mongoose: Cast to ObjectId failed for value on newly created object after setting the value -

[C++][SFML 2.2] Strange Performance Issues - Moving Mouse Lowers CPU Usage -

ios - Possible to get UIButton sizeThatFits to work? -