Questions tagged as 'ionic'

0
answers

Where to define a global ion-tabs?

Considering that I will have 3 lower menu items ( tabs ), is it correct instead of creating files in the /src/pages/tabs/* structure to contain the items, do directly in src/app/app.html ? Example (app.html): <ion-nav...
asked by 24.09.2018 / 13:25
1
answer

How to reuse code snippets in TypeScript on Ionic 3

On one of my pages, when the user clicks the Delete button, an alert appears asking for confirmation. This action exists on more than one page, to avoid duplicate code, how can I reuse the method below? Should I move to some location, do some...
asked by 23.09.2018 / 03:12
0
answers

When to use ion-label in a list?

I am doubtful about assembling a list, more specifically on the block: <ion-item> <ion-icon name="trash" item-start></ion-icon> <ion-label>Excluir definitivamente</ion-label> <ion-toggle checked="...
asked by 25.09.2018 / 03:20
0
answers

How do I get the URL of a Firebase Storage photo?

Good morning everyone, I'm having a hard time capturing the URL of a particular photo that is sent to firebase storage. The client registration works perfectly, the image upload is also done correctly. So I move to the variable client.foto recei...
asked by 22.09.2018 / 15:23
1
answer

Perform an action when the 'Accept' button is pressed

Personal I'm making an App in Ionic and when the user presses the Exit button I was able to configure an Alert message, but how do I configure the "I accept" button in the Alert PopUp? I want the user to be redirected to HomePage. When the butto...
asked by 28.09.2018 / 17:05
0
answers

Function does not return the UID - Firebase

I'm developing an app with ionic 3 and firebase, and I'm encountering a problem, because the function I'm calling is not working as expected. I wanted it to return only the requests with this uid getAll() { var userId = firebase.auth().current...
asked by 20.09.2018 / 20:36
0
answers

Local Notification does not show on certain ionic phones

I have the following code responsible for performing local notifications: I have a ngOnInit that every 5 minutes should call the queryNotifications () function and if it has anything in the request response (res.data.notify.questions) it shou...
asked by 20.09.2018 / 21:13
0
answers

Control Button Hardware Back Android with Ionic 3

Hello Implemented control of the physical back button for Android. I had to do this because by browsing the menu it makes the page as root and exits directly from the app by pressing it. After the first version stopped coming out of the modal...
asked by 17.09.2018 / 22:15
0
answers

Incorrect Printing of Values using Reduce

I'm having trouble implementing reduce in a calculation of an array. I'm following some examples of this link . If I do exactly as it is in the documentation, using the static values of the array, it prints the value of the sum in my...
asked by 17.09.2018 / 23:35
1
answer

Ionic 3 Http request does not add header authorization

Hello, I'm having a serious problem doing an HTTP REQUEST POST when I need to add a custom Header. My API Backend, has some blocked routes and requires authentication via Token, I need to pass it on my Header, however there is no way this works....
asked by 17.09.2018 / 23:30