You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've encountered a lot of difficulties combining collectionRepeat with my custom caching directive. In short, this directive downloads an image to the file system and then sets the path to this image as src attribute. The problem is that the first item gets copied by collectionRepeat before the linking phase, i.e. the caching, completes. Therefore the src attribute never gets set, leaving the first image blank.
There's no easy way to resolve this due to the isolated nature of collectionRepeat. For now I've created a workaround by watching the first item of a collection with a directive, once it changes it applies the src manually:
Due to the complexity it's hard te create an exact replication of this issue on CodePen. I'd be more than willing to help though by testing any suggestions on my own source code or by disclosing the source code privately to the Ionic team.
The text was updated successfully, but these errors were encountered:
RobbinHabermehl
changed the title
collection-repeat is incompatible with custom async directive
bug: collection-repeat is incompatible with custom async directive
Jul 6, 2015
I've closed this issue because my sensors indicated it was old and inactive, and may have already been fixed in recent versions of Ionic. However, if you are still experiencing this issue, please feel free to reopen this issue by creating a new one, and include any examples and other necessary information, so that we can look into it further.
Type: bug
Platform: all
I've encountered a lot of difficulties combining
collectionRepeat
with my custom caching directive. In short, this directive downloads an image to the file system and then sets the path to this image assrc
attribute. The problem is that the first item gets copied bycollectionRepeat
before the linking phase, i.e. the caching, completes. Therefore thesrc
attribute never gets set, leaving the first image blank.There's no easy way to resolve this due to the isolated nature of
collectionRepeat
. For now I've created a workaround by watching the first item of a collection with a directive, once it changes it applies thesrc
manually:HTML:
Due to the complexity it's hard te create an exact replication of this issue on CodePen. I'd be more than willing to help though by testing any suggestions on my own source code or by disclosing the source code privately to the Ionic team.
The text was updated successfully, but these errors were encountered: