Questions tagged as 'ionic2'

2
answers

GroupBy in Javascript

I'm getting the following result from a query: [ { "disciplina": "Portugues", "periodo": "1º Bimestre", "tipo": "1ª avaliacao", "valor": 9.5 }, {...
asked by 04.02.2017 / 01:32
2
answers

What is the command using * ngIf to do a larger and smaller check

I'm using ngIF just to change the color of the object, but I'm needing to create one that results. MediaTotal is less than 70 and greater than 50. What is the correct syntax for doing this: * ngIf="result.MediaTotal
asked by 30.10.2017 / 00:22
1
answer

How to perform a parameter type href on an image using Ionic / Angular Js

I have this code snippet, which shows an image with a CSS above: <img class="imagemCapa" image-lazy-loader="lines" ng-src="{{item.cadastra_oferta_foto}}" /> <div class="promocao"><b>{{item.cadastra_oferta...
asked by 09.08.2017 / 19:24
1
answer

Change function with ion-selection-option

Alright? I'm having difficulties, I hope you can help me ... I'm studying Ionic 2 very soon and thought of making a simple application. In JavaScript I did it quietly, but with Ionic does not work. It is the onChange () method that in ionic I be...
asked by 09.05.2017 / 02:23
2
answers

How to create a static method in a public class?

I would like to create a static method in a public class with a ToastController so that I can access this method across multiple classes. I tried to do it this way but it did not work: export class Utils { constructor(public toastCtr...
asked by 08.02.2017 / 20:31
1
answer

How to remove a page from Ionic navigation 2/3

In a hybrid application with Ionic 3 I have 3 pages that are part of the process of buying a product. The process is as follows: The user is in the cart and clicks the "Choose payment method" button If he is logged in is redirected to...
asked by 06.11.2017 / 21:32
1
answer

Error trying to run ionic serve windows

When I try to start my project Ionic is giving the following error: 0 info it worked if it ends with ok 1 verbose cli [ 'C:\Program Files\nodejs\node.exe', 1 verbose cli 'C:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js', 1 verbose cl...
asked by 13.02.2017 / 21:00
1
answer

Ionic2 add element in view

I need to create a click event that when pressed creates an input in the view. How can I do this ? Thank you Ps: use ionic2 typescript HTML <ion-navbar *navbar> <ion-title> POSimplex </ion-title> </ion-n...
asked by 06.10.2016 / 01:16
1
answer

Ionic 2 - OneSignal - Get player_id

I use OneSignal for push notifications in an ionic application 2. To send targeted notifications to specific users I need to recover the OneSignal player_id. Does anyone have any idea how to retrieve this id from the platform?     
asked by 01.11.2017 / 17:46
1
answer

Navigation by Id Ionic 2

Hello. I'm developing an application with ionic 2 and I have the following situation. I have 2 tables, 'stores' and 'publications'. My question is, how do you go to the 'store' listing to open each publication, according to the name of eac...
asked by 29.08.2017 / 00:16