kseamon/fast-bind

fast-bind-attr-once not working on 1st item in the list

Opened this issue · 0 comments

Hi - Firstly I'd like to thank you for these directives.
They've removed hundreds of watchers off some of my heavier pages.

I have found a small issue with the 'fastBindAttrOnce' directive.
I have a list of users and I tried to use that directive to remove the watcher for their profile pic.
However, for some reason the first user is always missing a picture.

I've created a Plunker here to demo the issue.
Could anyone share any light onto why this is happening.

http://plnkr.co/edit/u33lpq3YpoeHPmltwZwb?p=preview

The example repeats 1-5 but only 4 images appear with the first image missing again.

Thanks