Questions tagged as 'ionic'

1
answer

Display all text on the button

Hello! Is it possible to display all button text on it? Youareautomaticallyaddingtheseellipsis,butwouldliketodisplaytheentiretext.<ion-segment-buttonvalue="Bareserestaurantes" class="round-button" (click)="selecionaprodutoscategoria(2)"&g...
asked by 07.08.2018 / 21:09
1
answer

I can not test my Ionic application

I'm having a lot of trouble testing my Ionic application. As it has HttpClient requests, I'm having issues with the Cors. I thought about generating the production build and testing on my cell phone, so I tested: cordova build android --prod...
asked by 07.08.2018 / 17:17
0
answers

Help with authentication API REST IONIC 3

I'm new to development with ionic, and I need to login to an API, where I need to pass the login header and password in the base64 format, and also need to send the device data through the body ... I already tried everything by google and I coul...
asked by 01.08.2018 / 03:17
2
answers

Ionic: Make the confirm button return to the first error of the form

Hello, I have a project in ionic / firebase and it has a form with about 31 questions and I need it on this screen to click to finish instead of going back to the top as follows in this function that is in code this.content.scrollToTop();...
asked by 03.08.2018 / 21:23
0
answers

* ngFor with ngModel and value

I have the following repeat structure: TS resposta: string[]; HTML: <ion-card *ngFor="let pergunta of perguntas; let i = index"> I have a ngModel that I need to print the value of it in its value: <ion-textarea nam...
asked by 03.08.2018 / 22:07
1
answer

Show Selected Quantities

changeQty(item, varia, valor){ let eMax = 0; for (var i = 0; i < this.selectedVariation.length; ++i) { if (this.selectedVariation[i].idPV == item.idPV) { // console.log(this.selectedVariation[i]); eMax++; } } if (...
asked by 30.07.2018 / 16:13
1
answer

Charts.js listing data from a BD (ionic 3)

Good afternoon everyone, I'm studying the ionic and would like to represent some data that is in a DB in my chart. I made the list via api of php and the values are arriving all right (I even used ngfor to list them), but I do not know how to ma...
asked by 27.07.2018 / 19:32
0
answers

Average items with different criteria

I have these functions that sum the item prices of a array somaTotal() { let criterioPorIdpv = {}; let criteriosComPrecos = []; // Parte 1: Monta um criterioPreco para cada criterio. for (let i in this.varia) { criterios...
asked by 30.07.2018 / 16:55
1
answer

How to iterate array inside an angular / ionic ngFor

I have the following template: export interface Perguntas{ historico:[{id_historico: number, resposta_historico: string}] } In my ts file I perform an http request for a service that returns this data to me, if I give a console.log (th...
asked by 02.08.2018 / 19:28
1
answer

Change icon color

How do I change the color of an icon when clicked? I have created custom icons and they are working perfectly, but I would like it selected, change its color. I've tried everything but I have not gotten anything yet. If anyone can help me .. ple...
asked by 02.08.2018 / 20:03