Questions tagged as 'ionic2'

2
answers

Typescript Error Ionic 2

Next Error:    Type 'typeof LoginPage' is not assignable to type 'typeof HomePage'. Code: import { LoginPage } from '../pages/login/login'; if(user) { this.rootPage = HomePage; } else { this.rootPage = LoginPage; // Erro nessa linh...
asked by 18.11.2016 / 19:18
1
answer

Application startup delay

I created a multiplatform application using Ionic 2 + Angular 2 according to Get started from Ionic documentation . The basic command to create a side menu project is as follows: $ionic start myApp sidemenu There is something that is bot...
asked by 06.12.2017 / 16:38
1
answer

Redeem user's phone number

On Android, using Java, you can retrieve the device user's phone number with the following code: TelephonyManager tMgr = (TelephonyManager)mAppContext. getSystemService(Context.TELEPHONY_SERVICE); String numero = tMgr.getLine1Number();...
asked by 19.10.2017 / 16:17
1
answer

Delete item from an Inioc array 2

I'm having a hard time understanding how the splice () method works. I need to delete items from an array, when I click on (x), eg: <ion-item *ngFor="let item of data"> <ion-grid> <ion-row> <ion-col width-50>...
asked by 25.04.2017 / 12:03
2
answers

How can I filter both by Category and by Price?

I have 2 filter buttons: Sort by price - That works. Sort by Category - Does not Work. I would like to run the filter both by price and by category. Both are modal and I'm doing the following: O Sort by price: View strand cal...
asked by 01.11.2016 / 13:59
3
answers

Synchronous query in SQLite using Ionic

I have the following function below: public requisicaoXPTA() { this.database.executeSql("SELECT * FROM tbl_xpta", []).then((data) => { // o resultado retorna aqu na variável data }, (error) => { console.log(e...
asked by 01.12.2017 / 16:24
1
answer

Error in uploading ionic app

When I pass the command on my ionic upload terminal presents the error below and does not upload the file in the ionic view ionic upload Uploading app... An error occurred uploading the build: An error occurred uploading your application - A...
asked by 22.03.2017 / 19:53
1
answer

Ionic 2 OneSignal IOS

I have a project developed in IONIC 2 and I generated the version for IOS but I have a problem with OneSignal. I have already tried to reinstall the plugin by ionic but problem still continues.     
asked by 23.10.2017 / 23:56
2
answers

How do I emulate an application of ionic 2 on the tablet, and also how does it generate a .ipa and .apk?

I want to emulate my ionic 2 application on the tablet but I can not, I already uploaded it to the ionic cloud but it only works on the ionic view application, I also used the ionic emule and the ionic run, but when it opens the emulator of the...
asked by 27.03.2017 / 21:09
1
answer

Generators are only available for Ionic 2 projects

I can not resolve the following error: Generators are only available for Ionic 2 projects (CLI v2.1.8) Your system information: Cordova CLI: 6.4.0 Ionic CLI Version: 2.1.8 Ionic App Lib Version: 2.1.4 ios-deploy version: Not installed ios-s...
asked by 17.11.2016 / 18:57