ionic3

ionic 3 infinite scroll is not working until content scroll to top and then bottom

拜拜、爱过 提交于 2021-01-02 20:28:17
问题 I am trying to load some more data in ionic 3 project. The infinite scroll is working only for the first time. And then it is stop working until the page scroll to top and then bottom. Here is my code HTML <ion-content> <ion-scroll style="width:100%;height:100vh" scrollY="true"> <ion-list *ngIf="posts.length>0"> <button *ngFor="let post of posts" ion-item> <ion-thumbnail item-start> <img [src]="getPostImage(post)"> </ion-thumbnail> <h2>{{ post.title.rendered }}</h2> </button> </ion-list> <ion

npm install ->Failed at the node-sass@4.5.0 postinstall script

孤人 提交于 2020-12-27 07:44:02
问题 I'm trying to do npm install and an error appears : Failed at the node-sass@4.5.0 postinstall script. I tried to delete node_modules and then reinstall it, same error appears. what will be the solution? node v8.9.3 npm v5.4.2 ionic 3.19.0 回答1: Got the same problem (node v10.3.0, ionic 3.13.0). This worked : Delete package- lock .json , Delete node_modules folder, Run npm install again. 回答2: Just Try with this command hope it will very helpful. it's working for me sudo npm install -g node-sass

getting net::ERR_CONNECTION_REFUSED (http://localhost:8080) on android 4.4.2 version

此生再无相见时 提交于 2020-12-25 03:58:36
问题 I build a simple ionic project from this tutorial. It runs on Xiaomi Mix 2 phone (android version 8.0.0) and on browser without any problem. But when I deployed to the samsung note 2 (android version 4.4.2), it gives an application error with this message: net::ERR_CONNECTION_REFUSED (http://localhost:8080) Why am I getting this error? Any advice and suggestions will be appreciated. Kemal. 回答1: Your problem is caused by the cordova-plugin-ionic-webview plugin that is part of every new or

getting net::ERR_CONNECTION_REFUSED (http://localhost:8080) on android 4.4.2 version

倖福魔咒の 提交于 2020-12-25 03:58:05
问题 I build a simple ionic project from this tutorial. It runs on Xiaomi Mix 2 phone (android version 8.0.0) and on browser without any problem. But when I deployed to the samsung note 2 (android version 4.4.2), it gives an application error with this message: net::ERR_CONNECTION_REFUSED (http://localhost:8080) Why am I getting this error? Any advice and suggestions will be appreciated. Kemal. 回答1: Your problem is caused by the cordova-plugin-ionic-webview plugin that is part of every new or

How do I make a query based on the return of another query in Angular with Firestore?

|▌冷眼眸甩不掉的悲伤 提交于 2020-12-15 05:49:27
问题 Im trying to get some Ids from a collection, and then trying to use each of these Ids to get more data from another collection. Here is what I got done so far: Basically, I have blog app in which multiple users will be able to post an article. And said article has categories. The thing is, when a user selects a category to filter, it will bring me all USERS that have an article in said category (instead of bringing all articles of the selected category). So, in Firestore I have: categories/

How do I make a query based on the return of another query in Angular with Firestore?

梦想与她 提交于 2020-12-15 05:47:21
问题 Im trying to get some Ids from a collection, and then trying to use each of these Ids to get more data from another collection. Here is what I got done so far: Basically, I have blog app in which multiple users will be able to post an article. And said article has categories. The thing is, when a user selects a category to filter, it will bring me all USERS that have an article in said category (instead of bringing all articles of the selected category). So, in Firestore I have: categories/

Ionic 3 - Keyboard pushes content up, and over other content, with no reason

谁说我不能喝 提交于 2020-12-08 06:15:39
问题 I am working on a simple app in Ionic. I have a problem that the keyboard pushes my input field up and over another div while there is enough space for they keyboard. How do I fix this? I already looked around on the internet but wasn't able to find any solution to my problem. This is what happens: As you can see, the text is in the image and there is no reason for it being so high. There is more then enough space below it. This is my code: HTML: <ion-header> <ion-navbar> <ion-title>Login<

Ionic 3 after install admob plugin app build failed

邮差的信 提交于 2020-12-06 21:24:33
问题 When i build a android app in ionic 3 it was build. but after using admobFree or admobPro plugin every time build failed and i get this error.... (Due to post limit i am posting last few lines of error) FAILURE: Build failed with an exception. * What went wrong: Execution failed for task ':app:transformDexArchiveWithExternalLibsDexMergerForDebug'. > com.android.builder.dexing.DexArchiveMergerException: Unable to merge dex * Try: Run with --stacktrace option to get the stack trace. Run with -

ionic slider - lockSwipes(true) disables initialSlide and slideNext() methods?

旧城冷巷雨未停 提交于 2020-12-06 06:03:30
问题 Hi I'm using Ionic Slides to display todo lists and I want to disable the swipe guestures since my list items have them. Instead I want to change the slides via methods. This is my component: @ViewChild(Slides) slides: Slides; days: SbCalendarDay[] = [] //this is a list of todo's of each day ngAfterViewInit() { this.slides.lockSwipes(true); } slide(direction:string){ if(direction === 'prev'){ this.slides.slidePrev() }else{ this.slides.slideNext() } } And my view: <div class="sb-calendar-day">

ionic slider - lockSwipes(true) disables initialSlide and slideNext() methods?

百般思念 提交于 2020-12-06 06:02:53
问题 Hi I'm using Ionic Slides to display todo lists and I want to disable the swipe guestures since my list items have them. Instead I want to change the slides via methods. This is my component: @ViewChild(Slides) slides: Slides; days: SbCalendarDay[] = [] //this is a list of todo's of each day ngAfterViewInit() { this.slides.lockSwipes(true); } slide(direction:string){ if(direction === 'prev'){ this.slides.slidePrev() }else{ this.slides.slideNext() } } And my view: <div class="sb-calendar-day">