Skip to content
This repository was archived by the owner on May 29, 2019. It is now read-only.

refactor(typeahead): add typeahead controller #1754

Conversation

chrisirhc
Copy link
Contributor

First step to adding typeahead controller. There is some duplicate code but that will be cleaned up in future PRs.

Unfortunately, this depends on typeaheadEditable running after the post
linking function of the typeahead directive.

Note this and solve this later.
@chrisirhc
Copy link
Contributor Author

@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', [
Copy link
Contributor

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

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.

Copy link
Contributor

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.

Copy link
Contributor Author

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

@pkozlowski-opensource
Copy link
Member

@chrisirhc awesome. Will look into it during the weekend.

@chris-ramon
Copy link

+1

@wesleycho
Copy link
Contributor

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants