-
Notifications
You must be signed in to change notification settings - Fork 6.7k
refactor(typeahead): add typeahead controller #1754
refactor(typeahead): add typeahead controller #1754
Conversation
Unfortunately, this depends on typeaheadEditable running after the post linking function of the typeahead directive. Note this and solve this later.
@pkozlowski-opensource , @ajoslin this is part of #888 for review. |
|
||
//minimal wait time after last character typed before typehead kicks-in | ||
var waitTime = originalScope.$eval(attrs.typeaheadWaitMs) || 0; | ||
.controller('typeaheadController', [ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Aren't we using Capitalized names for controllers? :P
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We do :-) Plus we should start prefixing those, but this is a separate story.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, I was going to say that, that we could start prefixing (for the issue), won't hurt.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed with caps but I didn't add prefix heh
@chrisirhc awesome. Will look into it during the weekend. |
Maintain feature parity. Some duplicate code.
+1 |
Closing as typeahead is now in a controller - the controller needs to be refactored still, but now it can be done a little more incrementally. |
First step to adding typeahead controller. There is some duplicate code but that will be cleaned up in future PRs.