Most voted "ionic2" questions
Ionic 2 is the second version of the Ionic framework that aims to create hybrid applications for mobile devices. Use this tag for questions about features specific to version 2, for general questions use the tag [Ionic].
Learn more…217 questions
Sort by count of
-
0
votes0
answers120
viewsIonic 2 + Cakephp 2.X Rest
How to parse data in json next? I’ve tried using the promise and the observable. { "diaries": [ { "Diary": { "id": "1", "user_id": "1", "title": "T\u00edtulo da agenda", "description":…
-
0
votes1
answer201
viewsIonic 3 plugin_not_installed
I have an IONIC 3 application running normally when I run: ionic cordova run android. The problem is when I run ionic cordova run android --prod of the following error:…
-
0
votes0
answers292
viewsError doing npm install on my Ionic project
When I give the npm install command in the project it shows me this error, which can be ? bash-3.2$ npm install npm ERR! code ETARGET npm ERR! notarget No compatible version found:…
-
0
votes2
answers3010
viewsHow to change pages on Ionic V2
Good morning, you guys, I have a question, of beginner, that I created two pages in Ionic v2 but I do not know how to navigate between one and the other. Looking at the documentation of Ionic I saw…
-
0
votes0
answers115
viewsIonic 2 network.type = null
I am developing an application in Ionic 2 ts, but when I try to check if it is connected on the internet it returns null. My code import { Network } from '@ionic-native/network'; @Component({…
-
0
votes1
answer598
viewsError compiling Ionic 3 with Cordova: Cordova node_modules Cordova-common src superspawn.js:169:23
In Ionic 3 with Cordova when I give the command: Ionic Cordova run android --emulate Give me the following message: BUILD FAILED in 3s at ChildProcess.whenDone…
-
0
votes0
answers24
viewsIonic capacitor npx Sync not working
when I add a plugin, I need to run the command: npx cap sync So that it can load the plugin, however I’m getting the error below:…
-
0
votes0
answers110
viewsutf8 no Ionic 2 visual studio 2017
I’ve tried every way to accentuate the strings, but it’s no use. The letters get weird characters. Any suggestions? lang="en" does not work. This occurs using visual studio. <meta…
ionic2asked 6 years, 8 months ago Andersson OS 107 -
0
votes0
answers39
viewsScroll Ionic 3 Ios
I’m having trouble with this scroll, creating a black image at the bottom of the page. When I drag it up, it appears, when it drags down the black image.…
-
0
votes1
answer333
viewsIon-select does not work as it should
I have the following code for ion-select: <ion-item class="drop-categoria" style="margin-bottom: 5%; "> <ion-label>Categorias</ion-label> <ion-select [(ngModel)]="catselected"…
-
0
votes1
answer401
viewsError trying to run the app with Ionic serves
When trying to run the app with Ionic serves this giving the following error: > ionic-hello-world@ ionic:serve D:\www\mobile\app > ionic-app-scripts serve "--v2" "undefined" "--address"…
-
0
votes0
answers29
viewsUpdate the application database
I’m a beginner in app programming. I’m developing an ionic 2 with the angular 2. A doubt has arisen, I have a provider and in it I do all part of the database using the SQLite, just that there was a…
-
0
votes1
answer58
viewsIONIC 2 - App page reload
I’m developing an app where it’s almost all assembled from data from an API on an external server, searching for information on an Oracle client. After logging in, I have on the Homepage the…
-
0
votes1
answer46
viewsShow Page 2 event value in a Page 1 input
I have two pages and I want the value of an event (script below) of Page 2 to be shown in an input of Page 1. HTML of Page 1: <ion-list> <ion-item text-center> <ion-input type="text"…
-
0
votes1
answer1014
views2 <ion-input> on the same IONIC 2 line
I have a problem in my project with IONIC 2, I need to insert 2 text fields in the same line. I’ve tried to do it using , when I put only text inside it works , but when I put it it does not…
ionic2asked 7 years, 7 months ago Roberto de Campos 5,345 -
0
votes1
answer64
viewsngModel does not change Ionic 2’s Toggle
I have a toggle that enables and disables a function, it already works, what does not work is the state of Toggle in the View, toggle is always activated even with ngmodel=false. code below: View:…
-
0
votes0
answers28
viewsProblem running Ionic --device
I executed the command ionic cordova run android --device however, the execution stopped at here: Starting a new Gradle Daemon for this build (subsequent builds will be faster). Incremental java…
-
0
votes1
answer91
viewsBugando image keyboard on android [IONIC 2]
I have the following problem: As you can see in the image above, when I click to write in the login and password fields, this white background appears in the image. I imagine the problem is related…
-
0
votes1
answer357
viewsHow to send data to a modal in Ionic 3 from a Storage?
I have a list and a register. The Register is a modal and works well: The View of the Register: <ion-header> <ion-navbar color="dark"> <ion-title>Adiciona Sessão</ion-title>…
-
0
votes1
answer180
viewsBring only firebase-specific data
Well, I’m trying to develop an app with Ionic 3 and Firebase. But I’m having problems. You are bringing all the orders, for all users (getAll). I wanted to know the correct way for me to bring only…
-
0
votes0
answers128
viewsHelp with installing Ionic Cordova via Terminal - Mac!
I’m trying to install Ionic to develop a mobile app and am following a step-by-step site:Tableless, but in the part where it is requested to perform the command npm install -g ionic cordova,…
-
0
votes1
answer153
viewsWhat is the split method in Ionic for?
Well, I’m developing an app with Ionic 3, and I hear about a method called split, but I never understood its functionality. I just understood that it is related to arrays. Faced with this : What is…
-
0
votes1
answer38
viewsRemove Whitespace in Array
Well, I’m developing an app with Ionic 3. When I try to record some data in the array, it appears " n" at the beginning and end of the array. Follow the code : element = this.pedido.produto; if…
-
0
votes1
answer39
viewsHow not to allow the zoom of the phone in the App?
Good morning, you guys, I need to not let the user’s mobile zoom affect my App. I used the viewreport components: content="width=device-width, height=device-height, minimum-scale=1, maximum-scale=1,…
-
0
votes1
answer258
views"Maximum call stack size exceeded" error when instantiating object
I have the following classes in an Ionic 2 app export class JobIteractionsModel { public _idJob: number; get idJob() { return this._idJob } set idJob(idJob: number) { this._idJob = idJob } public…
-
0
votes2
answers669
viewsAlign text vertically between two buttons in Ionic 2
I’m having trouble aligning the value vertically between two buttons. Follow the code snippet and the result: <ion-list> <ion-thumbnail item-start> <img src={{produto.foto}}>…
ionic2asked 7 years, 6 months ago Lauro Sampaio 3 -
0
votes1
answer703
viewsProblems with IONIC 2 in various aspects
The big question is: What happened to IONIC after the updates. A few months ago I started a project with IONIC 2 for a client. Due to some setbacks of mine and also on the part of the client, the…
-
0
votes0
answers274
viewsDocument.getElementById no Ionic
I have an application developed with Ionic 3 and would like to know if this type of implementation should work. I have an html file with a div with id = corpoId. And in the implementation I open the…
-
0
votes1
answer53
viewsFirebase Cloud Messaging with $cordovaPush, how to work also for iPhone?
I am emulating my application by Intel XDK for IOS. I use it by working with Windows and it emulates and gives the error messages very well. The first mistake, is that when the user logs in, he…
-
0
votes1
answer159
viewsModal transition effect
Well, I’m with the following doubt, I have a Modalcontroller when I’m running on iphones, the input transition comes from below to cover the fool screen. With this library, can I change that…
-
0
votes1
answer583
viewsIonic 3 queries using Angularfire2
I’m trying to perform a search with Ionic 3 + Angularfire2. I have a list of all the data from firebase, but I can’t filter this data, it does not return me anything. ts. import {…
-
0
votes1
answer388
viewsConsume REST IONIC3
hello, I am new in the area of Web and Ionic3 and I have a problem, I followed a tutorial to consume a API Rest, I managed to bring the list with users, however I want to bring a specific user and…
-
0
votes0
answers296
viewsStore offline image in Ionic Storage
Hello, I created an application with a simple user registration and storing in the Ionic Storage, however I would like to know how to store an image to be the profile photo of the user My Provider…
-
0
votes0
answers618
viewsStore photo profile with Ionic Storage in a registration APP
I’m new in web programming and Ionic 3 and need a help, I created an app to make a simple registration and save in internal Torage, but wanted to save the photo of the person profile, how to select…
-
0
votes1
answer127
viewsData typing
all right? Putting into practice what I learned in angular/Ionic, I came across some doubts: 1- I made an ion-select with a list of states coming from firebase. When I typed the model States, be in…
-
0
votes1
answer965
viewsArray in Ionic of json file
I have the following JSON document "descritores": [{ "descritor": "texto..", "resultado": [{ "MediaTotal": "81,16" }, { "MediaTotal": "81,16" } ] }, { "descritor": "Texto 2..", "resultado": [{…
-
0
votes1
answer424
viewsUncaught Referenceerror: vira1 is not defined
I’m creating a function but when it’s called it says it hasn’t been defined yet, what would be the reason ? import { Component } from '@angular/core'; import { NavController, NavParams } from…
-
0
votes1
answer518
viewsError running "npm run Prod" command in Git Bash to build an Ionic 2 project
I have a publication ready project, which was created with Ionic 2 using Google’s Firebase API, but when I try to build the project for production, with the following command in Git Bash: "npm run…
-
0
votes2
answers1155
viewsHow to declare IF in Ionic
I am with the following code, it checks the value of _meditaTotal if it is greater than 70 the icone variable gets 'green', if it is lower q 70 and greater than 50 icone variable gets 'yellow' and…
-
0
votes1
answer300
viewsError making request via POST
I am sending information to a page on my server via GET through my application, until then it is working normally. However, now I need to send an image in the format base64, I believe that sending…
-
0
votes1
answer1612
viewsSecurity and login authentication in Ionic 3 using PHP-generated access token
I’m developing an application where the user can login by providing his email and password. After that, I make a request to my server PHP which checks in the database if the data exist and are…
-
0
votes1
answer180
viewsColors of buttons created in Ionic Creator do not stay in the project as in mockup
I created a layout using Ionic Creator, exported but the button colors and other elements created (in Ionic version 3) are ALL blue. Follow an example code: <div id="wellFit-button-bar1"…
-
0
votes1
answer115
viewsIonic 3 - Admob has Error when placing it in APP
When I put Admob in my Ionic application it looks like the picture below: What would be the mistake to n be showing the ads ?? Code I use: displayBanner() { if (this.platform.is('cordova')) { const…
-
0
votes0
answers272
viewsRelationship local tablesStorage Ionic 3
I want to make a relationship between two "tables" in Ionic 3 with Localsotrage. I created a preview with the first that would be the movement register: import { Injectable } from '@angular/core';…
-
0
votes1
answer841
viewsHow to read the result of a JSON array using Ionic 3?
I’m doing a GET for login, but I need to get the user ID for the session as well: submit(){ var link = 'http://localhost:1337/usuario?email='+ this.usuario.email + '&senha='+ this.usuario.senha;…
-
0
votes1
answer951
viewsIonic 3 Error Compiling for Android: Error: Failed to transpile program
When I give the command: ionic cordova build android --debug It makes the mistake to follow, but in ionic serve normal wheel... what I’m doing wrong? Error: Failed to transpile program at new…
-
0
votes0
answers29
viewsExpects 2-3 arguments, but has 0. Ionic 2
Guys I’m developing my first application in Ionic 2, and I came across this mistake. I like to organize my program, so I created some templates... I’m trying to create my page to add/edit a task in…
-
0
votes1
answer114
viewsTypescript not enabling the use of the files property
I’m having a problem in Ionic, where I use the property .files in an id of an element <input type="file">, in that way: <input type="file" id="images" multiple> this.register.images =…
-
0
votes1
answer593
viewsHow to Get Specific Return Data from a JSON with Ionic 3
I believe it’s simple, but coming out of Ionic 1 to 3 has changed so many things. I need to take all my Json returns from this routine (I actually need the user ID and log in localstorage):…
-
0
votes1
answer290
viewsCheckbox calling button with Ionic 2
I’m simulating something similar to a shopping cart using ionic 2. Basically you write the item name and value and create a checkbox list as in the image below. But I wanted the option only appeared…