ionic3

How to make a dynamic ion-scroll with animation?

拜拜、爱过 提交于 2019-12-11 19:08:05
问题 I'm creating a scrolling image horizontally but it is too simple and boring. I want it to be dynamic like if I click the image at the right side it will automatically move at the left side and display a different description. I don't have any idea how to make this happen. home.html <ion-scroll scrollX="true"> <ion-card class="scroll-card"> <div style="display: flex;"> <div style="padding-left: 10px; padding-top: 10px;"> <p style="color: white;">House Design</p> <p style="color: white;">Phase

I can not authenticate myapp with facebook from ios

余生长醉 提交于 2019-12-11 18:49:06
问题 I follow the official documentation of the plugin: cordova-plugin-facebook4 and the only thing I have to do is get the id of my application and the name from facebook developers : and execute the command: cordova plugin add cordova-plugin-facebook4 --save --variable APP_ID = "380 ....." --variable APP_NAME = "TI...." for android I have this configuration: I managed to get the key hash and it works. but for it to work I had to edit this file: platforms\android\app\src\main\res\values\strings

Can someone explain me how the interceptor catch error function with providers?

强颜欢笑 提交于 2019-12-11 18:41:12
问题 I've implemented my interceptor where I control error status, and I am confused about where should i catch errors or what should I use : .of, throw or empty ? intercept(req: HttpRequest<any>, next: HttpHandler): Observable<HttpEvent<any>> { if (!req.url.includes('auth')) { console.log("NO INCLUDE auth ") let getTsObs = Observable.fromPromise(this.storage.get('token')); const tokenObservable = getTsObs.map(token => { return req = req.clone({ setHeaders: { Authorization: `Bearer ${token}` } });

fetch data every 10 minutes in ionic 3 android

吃可爱长大的小学妹 提交于 2019-12-11 18:23:11
问题 How to fetch data every 10 minutes in ionic 3 my code is below here.. getStudentStatus() { let item = JSON.parse(localStorage.getItem('username')) this.auth.getStudentData(item.username).then( data => { this.studentList = data; } ) } Thank's in advance 回答1: If you want to fetch data every 10 mins you can use rxjs to help you here with an Observable that polls every 10secs. getStudentStatus() { let item = JSON.parse(localStorage.getItem('username')) let poll$ = Observable.interval(10000); poll

Ionic radio-group with Angular Reactive Forms

时间秒杀一切 提交于 2019-12-11 18:09:30
问题 I'm working on a project in Ionic and need to use reactive forms from Angular 5. I need to allow a user to select a language preference and I'm doing that with radio-group and ion-radio, but when I make changes to the form, I'm getting ERROR Error: There is no FormControl instance attached to form control element with name: 'preferredLanguage' Here is my template with the form <ion-header> <ion-navbar> <ion-title>User Profile</ion-title> </ion-navbar> </ion-header> <ion-content padding> <form

Ionic 3 formarray validate dynamic radio button groups

时光毁灭记忆、已成空白 提交于 2019-12-11 17:52:38
问题 I am trying to validate radio button group that are dynamically created from a object of arrays and i want it to be validated in the form i have posted a questions seeking answer and i was not clarified and did some research again and found this article followed its trail and found formArrayName but am unable to achieve the validation <form[formGroup]="form"> <ion-select formControlName="type"> <ion-option value="1">Full Time</ion-option> <ion-option value="2">Part Time</ion-option> </ion

Failed to install phonegap-plugin-push

。_饼干妹妹 提交于 2019-12-11 17:46:35
问题 I am following Ionic Push setup guide but I am getting an error trying to install phonegap plugin: cordova plugin add phonegap-plugin-push --variable SENDER_ID=123456789 --save --verbose Im getting and error: Error: Invalid Version: broken this is ionic info --verbose generate following output: [DEBUG] Loading global plugin @ionic/cli-plugin-proxy [DEBUG] Throwing PLUGIN_NOT_INSTALLED for global @ionic/cli-plugin- proxy [DEBUG] Loading local plugin @ionic/cli-plugin-cordova [DEBUG] Loading

align icons in ionic header

做~自己de王妃 提交于 2019-12-11 17:43:00
问题 I am trying to have a ion-header where one icon is on left and another on right. my code looks like below <ion-header> <ion-navbar> <ion-buttons icon-start> <button ion-button icon-only> <ion-icon name="contact"></ion-icon> </button> </ion-buttons> <ion-title text-center>about</ion-title> <ion-buttons icon-end> <button ion-button icon-only> <ion-icon name="search"></ion-icon> </button> </ion-buttons> </ion-navbar> </ion-header> but what is hapenning is that i see it coming in 3 different rows

Package native binaries Failed to install 'onesignal-cordova-plugin'

╄→гoц情女王★ 提交于 2019-12-11 17:42:26
问题 Português: Olá pessoal, estou com um problema quando vou buildar meu app no Package native do Ionic, mostra esse erro. Alguém tem alguma solução? English: Hello everyone, I have a problem when I build my app in Ionic's native package, it shows this error. Does anyone have a solution? Failed to install 'onesignal-cordova-plugin': Error: pod: Command failed with exit code 31 at ChildProcess.whenDone (/Users/ionic/builds/project-1/platforms/ios/cordova/node_modules/cordova-common/src/superspawn

Ionic onSlideChanged events delay

时光毁灭记忆、已成空白 提交于 2019-12-11 17:34:29
问题 I am using the ion-slides, and I get some events via: (ionSlideDidChange)="onSlideChanged()" I use this function to get the last slide: onSlideChanged() { this.lastSlide = this.slider.isEnd(); } Than I use this.lastSlide in another directive [hidden] to show or hide some stuff in the next slide. However there is a slight delay right after the next slide is shown, so after 1 second or less than one second the content is hidden as soon as slider reach to this last slide. I have tried to use