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
-
1
votes1
answer74
viewsUpgrading from IONIC 1 to 3: How to log in to JSON?
I’m migrating from Ionic 1 to 3, and how many changes. I created my login API, with token: Here I put my authorization code to access the API. And here the result in JSON: ion-content padding…
-
1
votes1
answer261
viewsHow to get a JSON result in Ionic 3, but echo result in PHP
I need to get the result from my JSON which could be "Registration already exists." or "Register Successfully." In my register, I am doing this way: submit(){ var nome = this.data.nome; var celular…
-
1
votes0
answers42
viewsFunction Problem IONIC 2 Typescript - Function runs only once
Goodnight! I have a problem with a function in Typescript(Ionic 2). The function does a search/filter from the contents of the tags. The user enters the number you want to search for and the…
-
1
votes1
answer5065
viewsHow to navigate between pages using buttons with Ionic?
I’m trying to understand how to navigate between pages with ionic2. I want that by clicking the button below it redirect me to HomePage, how can I do this? Button in.html menu <button ion-button…
-
1
votes0
answers72
viewsProblems in a list - Ionic
Well, I’m developing an app with Ionic and firebase. Everything is happening as expected, however, when I try to bring the data for editing, the data is all in a column of the list, I did several…
-
1
votes0
answers194
viewsCordova-pdf-Generator Ionic plugin
I use the c plugin in Ionic to generate a pdf type file, but notice in the example below the writing is html. Does it have a way to instead I generate the pdf generate an html file? import {…
-
1
votes0
answers79
viewscreate and write with Cordova file Ionic plugin
I am trying to write to a file using the Cordova file, as I cannot write straight to the Assets (which is read-only), I move the file and try to write, but it falls in the catch erro2.…
-
0
votes1
answer1462
views*ngFor with angular2
I would like to create a loop of repetition, but in this loop I already have the amount of times it will perform. Below is an example of the expected result using javascript. for(i = 0; i < 5;…
-
0
votes2
answers615
viewsError and Mysql: [ngRepeat:dupes] Duplicates in a Repeater are
I’m developing an example with IONIC but it’s giving the error: ionic.bundle.js:19387 Error: [ngRepeat:dupes] Duplicates in a repeater are not allowed. Use 'track by' expression to specify unique…
-
0
votes1
answer2343
viewsHow to update the view after database change with IONIC 2
I am developing an application with IONIC 2 where I consume a REST webservice from an application that is running online. When opening the page, I request and display the information correctly on…
-
0
votes1
answer700
viewsUse Ionic 2 for Windows Phone/Windows Universal apps?
It is a recent doubt that I have, I intend to start development with the Ionic, but as my main platform is the Windows Phone, I want to know if the framework gives compilation support for the…
-
0
votes1
answer701
viewsUsing two *ngFor at the same time in the Ionic2-framework
I am trying to use 2 *ngFor on the same ion-Row. I first tried it as follows: <ion-row *ngFor="let mes of meses" *ngFor="let por of arrayPorc"> <ion-col width-25>{{mes}}</ion-col>…
-
0
votes1
answer100
viewsAngular 2 at Visual Studio 2015
I have been working on a project that uses Ionic Framework and Angularjs for mobile and use Visual Studio 2015 "Tools for Cordova" to build and debug the project. Recently, Angular 2 and Ionic 2…
-
0
votes1
answer527
viewsRequest HTTP Ionic 2 GET
Good afternoon guys, use Ionic 2 and how can I make a request get (without Provider nd only in class ts)? I just need you to take what’s written on the page and display on an Alert. How can I do…
-
0
votes2
answers182
viewsIonic 2 Reading json
Personal I’m trying to read a json on Ionic, I created the service as follows : http://pastebin.com/0btbuC83 my class is like this : http://pastebin.com/6gdpBth4 and my json is like this :…
-
0
votes2
answers1709
viewsHow to get the phone number in Ionic using Cordova or phonegap
I’m developing an app and I need to get the phone number. I did a lot of research online, and I couldn’t find much. One of the examples I found was this: Cordova-plugin-yes but I couldn’t get him to…
-
0
votes1
answer191
viewsWhat is the implementation in Ionic 2 to avoid code repetition?
I have a "tab" and would like to put it in the header, however I would like this "tab" and its elements to be the same for all screens, as well as some .scss. design What is the best way to do this…
-
0
votes1
answer169
viewsIonic 2 http request error
I need to request a webserver in Ionic 2 and I have the following code : constructor(private navController: NavController, public http: Http) { var url = 'http://localhost/APIPortManager/teste.php';…
-
0
votes0
answers76
viewsDirect from one view to another by using ng-click on Ionic
Good morning, I would like to know how to redirect this view when I click to go to each of the menu options. Notas Personalizadas {{note.title}}…
-
0
votes0
answers430
viewsIonic2 - Download Images and Save to Gallery
You guys, simple doubt for you How do I download an image that be in a server and then save them in the device Gallery (IOS and Android). PS: I’m using Ionic 2 From now on I thank you all…
-
0
votes2
answers888
viewsRecover Firebase Storage Image without Downloading
I made use of Firebase Storage to save images, now I want to grab them for users to see, there’s some way to do this without downloading the image?
-
0
votes2
answers503
viewsionic2 - photo upload via server
Following guys. I have an application in Ionic 2. The action is simple: take a photo or select a photo from the gallery. So far so good. however, at the time of uploading, it will go on the server,…
-
0
votes0
answers77
viewsProblem with Ionic versions
Ionic does not respect the standard design structure according to the installed versions, I have version 2.0.0-beta.30, Node = 6.2.1 and npm 3.9.3, when creating a project it generates the project…
-
0
votes1
answer108
viewsParallelism with Angular 2
I need to insert 30,000 records into the device (in Sqlite) through a file. But at the time of insertion, the application hangs. So I thought about creating an asynchronous service, but I don’t know…
-
0
votes1
answer24
viewsHow do I update the data? Ionic2
Hello! I started learning programming recently and I’m using the "Ionic2" framework. However, I would like to know how I can update the data. For example: I created a Star Wars app and tomorrow I…
-
0
votes1
answer519
viewsIonic 2 - Custom tabIcon images do not appear on the device
I’m trying to put some custom icons (in svg or png) in my app tab, Ionic serves works smoothly, but when running on the device (android) the icon does not appear, I’m imagining it may be permission…
-
0
votes2
answers5660
viewsHow do I add the event (click) to a Component in Ionic2?
I have a component called footer, it contains the following code: footer.html <ion-footer> <ion-toolbar color="black-light"> <button ion-button color="light" full…
-
0
votes1
answer961
viewsFailed to run Ionic server
Good afternoon, I’m trying to run Ionic right after creating the project without even touching anything and always comes the same flaw. I no longer know what to try. When I run the command "Ionic…
javascript node.js apache-cordova ionic2 angularasked 7 years, 7 months ago Marcos Rai Alves da Cunha 372 -
0
votes1
answer408
viewsIonic 2 - Menu items, first item does not appear
I created a Blank project in version 2 of Ionic, I added two pages keeping Homepage and Page1 and 2 and intending to show a list of the pages in the implemented menu in the code of the app. import {…
-
0
votes1
answer398
viewsGet IMEI using Ionic 2
I am now starting to use Ionic, and would like to know how to get the device Imei number using Ionic 2. I tried to that, but I didn’t understand how to install the plugin…
-
0
votes0
answers1022
viewsIonic 2 - How do I get back to the homepage of a particular tab
My APP works with tabs, within those tabs I have buttons that open other pages using the push, when I click on tab 2, and I click on a button, it opens the normal page, then I click on tab 1, and…
-
0
votes1
answer407
viewsHow to remove ion-Toolbar lift?
The following code below 'builds' a toolbar at the top of the application/page. Basically a ion-toolbar within a header that is fixed positioned. I intend to remove the elevation from it but am not…
-
0
votes1
answer192
viewsAutomatic deploy of Android and Ios apps
Would anyone know if there is an automatic deploy tool for Android and Ios applications. Any tool where I can tell him what my project folder is, and when I have deploy run, he already manages the…
-
0
votes1
answer115
viewsuse variable to call ngFor in Ionic2
I have a variable that I display on the screen of my app called {{data.}}. In the example code: <ion-item *ngFor="let cardapiohotrod of cardapiohotrod |…
-
0
votes0
answers428
viewsSearchbar Ionic 2
I managed to implement the searchbar as documented by IONIC 2. The problem is I’m bringing information from a remote database and I can’t implement this database data into searchbar. It is a matter…
-
0
votes0
answers276
viewsProblem Generating Ionic 3
I’m developing an app that needs to read a Qr Code, but I have a problem generating . apk in Ionic 3.0. When I upload the application in Ionic view works normally (opens the camera and reads), in…
-
0
votes1
answer190
viewsError using proper Ionic 2 css
Css example: .ion-content { background-color: #000000; } home ts. import { Component } from '@angular/core'; import { NavController, ViewController } from 'ionic-angular'; import { HomeService }…
-
0
votes0
answers146
viewsBuild menu is not opening with drag
I am testing some components of Ionic 2. I installed via usb an application with a simple menu, which has some items. When I try to open the side menu 'dragging', it doesn’t work, just by clicking…
-
0
votes0
answers108
viewsIonic 2 Typescript error while compiling
I am making the construction of the side menu (side-menu) the first step of inserting the button and the first tab was quiet, but in the opening part of these tabs as for example "page one" or "page…
-
0
votes1
answer252
viewsPass parameters between screens [ionic2 / angular2]
How to pass a parameter (id) between screens? I tried Navparams, but I couldn’t do what I wanted. I would like to place the ID on the ion-item and when I click it send the id to another screen.…
-
0
votes1
answer262
viewsIonic v2 white screen
I am making an application using Ionic v2 and this working perfectly, my problem is that when Gero for production -> Ionic cordoa build android --Prod. In some cell phones begins to give White…
-
0
votes1
answer233
viewsSave token coming in Api Sponse
I am trying to save the token that my server sends in each request. Although "Authorization" appears to be present in Sponse, I cannot print the value. The code is: What returns from the server:…
-
0
votes2
answers102
viewsIonic2 root Nav
Guys I’m developing an app in Ionic 2 and on the first screen Page1 and executed: this.app.getRootNav().push(Page2) My problem is that when user click back button I want you to run the method…
-
0
votes1
answer508
viewsIncrement object property within an array
I do not know what is the best way to implement this, I am trying with switch without success... By clicking the button, I want to increment the property "Qtd"; choice=[…
-
0
votes0
answers348
viewsApplication does not install. Ionic 2 and One Signal
Good morning. I am generating apk via --Prod --release, I can generate apk, I can sign but when I put in a real app the app does not install. This started to happen when I started using one Signal.…
-
0
votes1
answer191
viewsPublish Ionic browser app
It was developed an application in Ionic 2 here in the company that I work, however, one of the customers that is using, I would like to use it on the desktop (via browser). How and which files I…
-
0
votes1
answer154
viewsIonic - Problem loading Googlemaps to emulator and mobile device
In the browser googlemaps loads normally, already in an emulator or mobile the application opens but everything is blank as in the photo, already installed the dependencies googlemaps, Geolocation…
-
0
votes0
answers218
viewsIonic official synchronization
Good Afternoon to you... I need to develop an Ionic app that is offline (pouchDB) and when I had local network connection in my case (wifi) make the integration with the server that in my case would…
-
0
votes1
answer137
viewsHow to check the console of an Ionic app running on your smartphone
How do I open the console of an application running on a device? I’d like to review the logs I put in the app.
-
0
votes1
answer1081
viewsTable in IONIC 2
Hello guys I’m new in Ionic 2 and I have some questions about how to manipulate tags , I’m doing an exercise that on the screen I have a table like the image as I would this table in Ionic ?…