Viewing 4 posts - 1 through 4 (of 4 total)
-
AuthorPosts
-
July 6, 2018 at 7:20 am #13474
Yehia Abdel SalamParticipantHi there, I have an issue with the image caching, resulting to the following urls: http://localhost:8100/nullLibrary/files/filesystem:http://localhost:8100/temporary/imgcache/60baf07c53dc1323f9f18a8e692ece60f9528ea6.jpg You can find the screenshot here http://www.ballistichq.com/sandbox/ss5.jpg. I also have another question, is there a way to turnoff the image caching in general, an on/off switch, something in the config.ts for example Also for reference, I had to add the url_image variable to the input source, this is the domain of the website (e.g. www.domain.com), otherwise all the request were for /wp-content/etc.. instead of domain.com/wp-content/etc.. when running locally ion-card class="featured_course_block" [navPush]="coursePage" [navParams]="course"> div class="featured_course_image"> lazy-img [inputSrc]="url_image + course.featured_image">lazy-img> div> ion-card-content class="align-left"> ion-card-title> {{course.name}} ion-card-title> star-rating *ngIf="popular" [rating]=course.average_rating>star-rating> ion-card-content> ion-card> </div>July 6, 2018 at 12:57 pm #13493
adminMemberPlease replace imageCache.ts in your src/services with the given " imageCache.ts " provided on this link : " https://bit.ly/2KyOdJ4 "July 8, 2018 at 7:25 pm #13538
Yehia Abdel SalamParticipanti know get those errors when doing ionic serve: [21:20:18] typescript: C:/stage/e4y-mobile-app/e4y-app/src/services/imageCache.ts, line: 84 Expected 0 arguments, but got 1. L83: private getCachedFileURL(src: string): Observable<string> { L84: return bindCallback<string, string[]>(ImgCache.getCachedFileURL)(src) L85: .pipe( [21:20:18] typescript: C:/stage/e4y-mobile-app/e4y-app/src/services/imageCache.ts, line: 95 Expected 0 arguments, but got 1. L94: private cacheFile(src: string): Observable<string> { L95: return bindCallback<string, string>(ImgCache.cacheFile)(src); [21:20:18] typescript: C:/stage/e4y-mobile-app/e4y-app/src/services/imageCache.ts, line: 103 Expected 0 arguments, but got 1. L102: private isCached(src: string): Observable<[string, boolean]> { L103: return bindCallback<string, [string, boolean]>(ImgCache.isCached)(src); [21:20:18] dev server running: http://localhost:8100/ -
AuthorPosts
Viewing 4 posts - 1 through 4 (of 4 total)
- You must be logged in to reply to this topic.