ionic-framework

Ionic 4 ion-slides change css style of the active slide using ngClass

三世轮回 提交于 2020-01-03 02:24:13
问题 EDIT: adding a stackblitz: https://stackblitz.com/edit/ionic-b2r7si I am using ion-slides as following: <ion-slides class="fullWidth" [options]="slideOptsOne" #slideWithNav (ionSlideDidChange)="change($event)"> <ion-slide #status *ngFor="let array of arrays"> <ion-col> {{array}} </ion-col> </ion-slide> </ion-slides> I need to change the css style of the current active slide, like make it underlined or bold. I've done some researches and apparently I should use [ngClass]='' but can't know how.

ionic 3 deeplinking for reset password

落花浮王杯 提交于 2020-01-03 02:23:25
问题 I am creating a mobile application using ionic 3. I need to know the logic to implement reset password functionality. till now, i am able to send an email with reset token to the user. I was thinking that id user clicks on the link in the email, if app is installed then it should open the application page dedicated for reset password. So i did a little research and found that it can be done using DeepLinking ( custom url to respond) like myApp://resetPassword/{token} Now the problem is in

ionic - Drop down list flickers in iPAD

依然范特西╮ 提交于 2020-01-03 02:01:15
问题 Dropdown list in my Ionic application flickers in iPAD. [1. On Dropdown Tap] [2. If Tap on outside dropdown list] [3. If Tap inside dropdown list] Once again the Image 1 will be shown. It worked fine with iPhone 5s. But not in iPAD. Any solution or workaround ? EDIT: Even if I change the orientation of iPAD, it shows the previously listed dropdown contents. 回答1: Seems to be an issue with recent update of iOS 11 and Apple's UIWebView. It works well with Apple's WKWebView. Resolved the issue by

Where do I have to import a page on Ionic 3?

十年热恋 提交于 2020-01-03 01:40:09
问题 I don't very understand, when I create a simple page with Ionic 3 with the following command ionic g page contact , where exactly have I to link the files and the page? Only on src/app/app.module.ts with this line? import { ContactPage } from '../pages/contact/contact'; Why do I need to push it on providers and declarations then? I have to do this for all the page my app will have? And if I want create a link to this page, I have to import it too on the homepage's typescript file? Thanks 回答1:

How to redirect user to previous page after login in Angular Js and IonicFramework project

*爱你&永不变心* 提交于 2020-01-02 22:33:33
问题 I am working on an ionicframework project which allows user to view feeds and description but redirects the user to login page whenever the user clicks comment send button if the user is not logged in. How do I get the previous state when in the login page so that after login is successful the user is redirected to the previos page? 回答1: modify your run like this run(['$rootScope', function($rootScope) { $rootScope.$on('$locationChangeStart', function() { $rootScope.previousPage = location

Http.get() working but not working in build(Release/Debug) in Ionic 4

丶灬走出姿态 提交于 2020-01-02 19:22:09
问题 I am trying get data from a simple api, it works fine in ionic serve (browser) , But when i build the app http call does not work. my Code is this.http.get("http://example.com/api/routes").subscribe(response => { this.routes = response["routes"]; for (let x in this.routes) { let a = this.routes[x].rou_stops; let b = a.split(","); for (let y in b) { this.newCit.push(b[y]); } } }); please help with this issue. 回答1: I am Guessing that your are getting this because of android changes its http

How to change ionic 2 local push notification icon?

无人久伴 提交于 2020-01-02 13:50:43
问题 I have created a hybrid app using ionic2 in that I am using cordova local push notification. Everything working perfectly only thing is not able change a icon, in below I have paste my code here. LocalNotifications.schedule({ id:1, title: "Test Title", text: "Push Notification", icon: "res://icon.png", at: new Date(new Date().getTime() + 5 * 1000), sound: null, every: "minute" }); And also I tried this below code. LocalNotifications.schedule({ id:1, title: "Test Title", text: "Push

Reset/Unload Controller after ChangeState (logout called) . AngularJS

最后都变了- 提交于 2020-01-02 10:29:08
问题 I am Creating an app where the user can login from FaceBook or Twitter. After login, the user is directed to some HomePage. And here, controller loads and my initial function is called which loads data specific to that user. When user clicks on Log Out. The tokens are cleared and user is directed to SignIn Page. Now without closing the app, if the user SignIn again using twitter, The user is directed to same homepage. The Scope of that controller has the same data. I know Ionic uses cache to

Reset/Unload Controller after ChangeState (logout called) . AngularJS

混江龙づ霸主 提交于 2020-01-02 10:29:05
问题 I am Creating an app where the user can login from FaceBook or Twitter. After login, the user is directed to some HomePage. And here, controller loads and my initial function is called which loads data specific to that user. When user clicks on Log Out. The tokens are cleared and user is directed to SignIn Page. Now without closing the app, if the user SignIn again using twitter, The user is directed to same homepage. The Scope of that controller has the same data. I know Ionic uses cache to

How to check if two fields are equal in Angular / Ionic?

梦想与她 提交于 2020-01-02 10:26:06
问题 I am wanting to check if the values of two fields are the same, these fields must be passed by parameters to the validation function, I am doing this, the problem is that it can not get the value of the field, it appears null, as Can I get the values correctly and dynamically? My form builder, I'm using the match function to check the cell_phone and confirmation fields. this.recharge = this.formBuilder.group({ cell_phone: ['', Validators.required, Validations.match('cell_phone', 'cell_phone