Posts by jraspante • 211 points
11 posts
-
1
votes1
answer108
viewsA: Component problem called expendable in Ionic 3
In his home.html you called by the Exp selectortondable, but in their expendable.ts vc declared the selector as Expandndable. Switch to <expendable [expandHeight]="itemExpandHeight"…
-
1
votes1
answer5065
viewsA: How to navigate between pages using buttons with Ionic?
Let’s assume you want to go from Homepage to Sobrepage by clicking a button that is on the Homepage. Within Homepage.ts import the NavController and the component SobrePage. Create a function…
-
0
votes2
answers200
viewsA: Route guard on the Ionic possible?
Yes, there is another better solution. You can read us Lifecycle Events in documentation IONIC. In your case, you can use the ionViewCanEnter. Before the page is created, it will check its logic. If…
-
0
votes1
answer290
viewsA: Checkbox calling button with Ionic 2
Add the (ionChange) calling a function and passing as parameter the $event and the item. Within its function it will be necessary to click on a vector the selected items and set the variable…
-
1
votes1
answer71
viewsA: Problems implementing ng2-img-max lib!
You are declaring the providers but did not import the module Ng2ImgMaxModule how it sends the documentation of the link you published. import { Ng2ImgMaxModule } from 'ng2-img-max'; @NgModule({…
-
0
votes1
answer325
viewsA: Ionic 3, "push" of variables
I understand that you want to go from a page A to a page B and take values from A to B. If so, use the NavController and NavParams. Example: import { NavController } from 'ionic-angular'; import {…
-
0
votes1
answer603
viewsA: How to pass a parameter from a page to a Provider in Ionic 3?
Create a Preview with some name like constants.provider.ts and create get and set methods. See below: import { Injectable } from '@angular/core'; @Injectable() export class ConstantesProvider {…
-
0
votes1
answer1299
viewsA: Chartjs. How to adjust the graph height according to table size? Ionic 3
The problem was in the filter. I was using a modal that sent the parameters to another view this.navCtrl.push(IndicadoresPage, {consulta: consulta});. I switched to this.viewCtrl.dismiss(consulta)…
-
1
votes1
answer303
viewsA: Chartjs with dynamic dataset
Create an array with the information returned in the database and include the array in the dataset parameters. var data[]; var valores[]; //data e valores virão do seu banco. this.barChart = new…
-
0
votes1
answer1299
viewsQ: Chartjs. How to adjust the graph height according to table size? Ionic 3
I’m developing an application in Ionic 3, where I consume data from an API and display the data on a horizontal graph. The amount of data returned by the API is not standard, so sometimes the height…
-
3
votes0
answers200
viewsQ: How to get sense of the device using gyroscope and accelerometer? Ionic 3
I’m developing an application in Ionic 3, where I need to know what direction the user’s phone is pointing to, and then make the decision. I was trying to use the plugin Device Orientation, which…