Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upAdd example for image caching #2154
Comments
|
finally i was able to do image caching with observables but but there are some questions left:
here is my pipe:
|
|
I'm also struggling with this. Whenever I return an observable I get this error. The method setNativeSource() expects UIImage instance. I've simplified the transform method to this to try and pinpoint the problem.
If I return the ImageSource directly then it works as expected. Any help would be greatly appreciated. This is what the html looks like.
EDIT: I didn't know I had to add the async pipe after. After adding | async to the [src] everything works as expected. |
Hello,
I am trying to implement image caching on angular however there is no example how to do this.
In general example view model is updated however in angular there is no view model and with OnPush I need to go with observables. However the app crashes. Plus then not sure when to use enableDownload and disabled onload functions.
I asked question on stackoverflow.com but got no answer.
Question with service example can be found here : https://stackoverflow.com/questions/61418403/how-to-implement-image-caching-in-nativescript-angular
Finally I am going to do pipe not service but is its same -
It would be super cool to get answers from you guys and improve docs because I feel stuck a little bit.