ionic3

Menu is not working when i push the screen ionic 3

纵饮孤独 提交于 2019-12-02 03:26:31
I have one screen login with home comes with menu, 4 tabs . Like home, about, location, more .And in this case menu working fine. When i login, i use this below code to navigate the screen to home pagewith all tabs , menu. That time its working fine. this.navCtrl.push(TabsPage); And when i am in about screen . I have one button to show some data and when user press ok button it will show one screen with some score data: this is that screen code: <ion-header> <ion-navbar color="navcolr" no-border-bottom> <ion-title >Exam Score</ion-title> </ion-navbar> </ion-header> <ion-content padding

How to group the list by date

岁酱吖の 提交于 2019-12-02 02:47:44
I am trying to show list with group by date using below code but i am getting exceptions Unable to get property 'forEach' of undefined or null reference can some one help me please where did i do mistack home.ts: this.events = [{ id: 1, category:'camera', title: 'First event', date: '2017-12-26' }, { id: 2, category:'accessories', title: 'Second event', date: '2017-12-27' }, { id: 3, category:'camera', title: 'Third event', date: '2017-12-26' }, { id: 4, category:'accessories', title: 'Fouth event', date: '2017-12-27' },{ id: 5, category:'camera', title: 'Fifth event', date: '2017-12-26' }] }

Filter list based on more than one field

北慕城南 提交于 2019-12-02 02:23:56
问题 I'm iterating a list of jobs and there's a search implemented on this list. Search is working but now it only filters list based on one field. Here's my list: <ion-card *ngFor="let job of allJobs | search : searchTerm"> <ion-grid> <ion-row> <ion-col> <div> <span> {{job.day | uppercase}}</span> <span> {{job.month | uppercase}}</span> </div> </ion-col> <ion-col> <div> <span>{{job.time}}</span> <span>{{job.name}}</span> </div> </ion-col> </ion-row> </ion-grid> </ion-card> I made a pipe for

Ionic3(Angular4) CORS on an emulator

强颜欢笑 提交于 2019-12-02 01:40:49
问题 I'm testing Ionic 3 app on a genymotion emulator. Btw http request doesn't work because of CORS. I thought that a sever has a problem. But I confirmed that a server has no problem after checking it with ionic 2 app. Http request of Ionic 3 app works well on a real device and on a browser. Would you like to let me know what I am wrong? sorry for my poor english. Thanks 回答1: under your config.xml give the location of your localhost eg: <content src="http://10.10.1.1:8100" /> <access origin=

error: exportArchive: No profiles for 'io.ionic.starter' were found

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-02 01:34:02
I am trying to build my ionic 3 application and deploy and live reload on my device for that reason I am trying following command: ionic cordova run ios --device --prod -lcs But after running that command, I get below error: error: exportArchive: No profiles for 'io.ionic.starter' were found and "No profiles for 'io.ionic.starter' were found" UserInfo={NSLocalizedDescription=No profiles for 'io.ionic.starter' were found, NSLocalizedRecoverySuggestion=Xcode couldn't find any iOS App Development provisioning profiles matching 'io.ionic.starter'. Automatic signing is disabled and unable to

Ionic3(Angular4) CORS on an emulator

我只是一个虾纸丫 提交于 2019-12-02 00:13:16
I'm testing Ionic 3 app on a genymotion emulator. Btw http request doesn't work because of CORS. I thought that a sever has a problem. But I confirmed that a server has no problem after checking it with ionic 2 app. Http request of Ionic 3 app works well on a real device and on a browser. Would you like to let me know what I am wrong? sorry for my poor english. Thanks under your config.xml give the location of your localhost eg: <content src="http://10.10.1.1:8100" /> <access origin="http://10.10.1.1:8100" /> <allow-navigation href="http://10.10.1.1:8100" /> further more make sure you add the

Ionic 3 redirect from app.component class to another page

六月ゝ 毕业季﹏ 提交于 2019-12-01 22:52:18
I’m getting push notification messages and once I receive the message, I want to redirect to another page or show another page instead of home page. NavController doesn’t work here, so I was wondering what will? export class MyApp{ rootPage:any = HomePage; constructor(platform: Platform, statusBar: StatusBar, splashScreen: SplashScreen, public push: Push) { platform.ready().then(() => { // Okay, so the platform is ready and our plugins are available. // Here you can do any higher level native things you might need. statusBar.styleDefault(); splashScreen.hide(); }); this.push.rx.notification()

Filter list based on more than one field

蓝咒 提交于 2019-12-01 21:43:39
I'm iterating a list of jobs and there's a search implemented on this list. Search is working but now it only filters list based on one field. Here's my list: <ion-card *ngFor="let job of allJobs | search : searchTerm"> <ion-grid> <ion-row> <ion-col> <div> <span> {{job.day | uppercase}}</span> <span> {{job.month | uppercase}}</span> </div> </ion-col> <ion-col> <div> <span>{{job.time}}</span> <span>{{job.name}}</span> </div> </ion-col> </ion-row> </ion-grid> </ion-card> I made a pipe for implementing search. Here's the code for it. transform(items: any[], terms: string): any[] { if(!items)

Ionic 3 geolocation not working when GPS is disabled

送分小仙女□ 提交于 2019-12-01 21:06:06
I have ionic native geolocation plugin installed "@ionic-native/geolocation": "^4.15.0" I have also tried "4.6.0" and "4.20.0". It is working absolutely fine when I keep my GPS enabled before going to that page. But when GPS is not enabled, It won't ask me to turn it ON, gives an error on console and carry undefined coordinates with it. I wrote the method of getCurrentPosition in constructor/ionViewDidLoad. So even user enable it on that page, the method does not invoke and the coordinates remain undefined. Following is code this.geolocation .getCurrentPosition() .then(resp => { console.log

Getting error on ionic cordova build android

时光怂恿深爱的人放手 提交于 2019-12-01 20:09:31
Just started to learn ionic 3. Getting below error on ionic cordova build android (node:6364) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): [object Object] (node:6364) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code. Below is my ionic info. cli packages: (C:\Users\HIT\AppData\Roaming\npm\node_modules) @ionic/cli-utils : 1.19.0 ionic (Ionic CLI) : 3.19.0 global packages: cordova (Cordova CLI) : 8.0.0 local packages: