Skip to content
This repository has been archived by the owner on Jul 23, 2021. It is now read-only.

Make sure we pass in an argument to focusOn directive #10 #11

Open
guikubivan opened this issue Apr 21, 2016 · 0 comments
Open

Make sure we pass in an argument to focusOn directive #10 #11

guikubivan opened this issue Apr 21, 2016 · 0 comments

Comments

@guikubivan
Copy link

When used in an ng-repeat loop, I only wanted it to trigger focus on first item, so I did something like this:

<a ... focus-on="{{$first ? 'focus-just-on-me' : '' }}>...</a>

However, that made it add listeners even for when focus-on was not defined.

PR at #10 if interested.

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

No branches or pull requests

1 participant