These are chat archives for angular/angular-2-ionic-2

17th
Aug 2016
Frank Cooke
@platypusrex
Aug 17 2016 03:47 UTC
Hey everyone...having an issue with an ion-icon rendering inside of a ion-navbar. I'm currently on beta 7 and can't upgrade. Not sure if this is why I'm having this issue, just wondering if someone can shed some light.
<ion-navbar *navbar class="hide-border service-providers-nav">
    <ion-buttons start>
        <button>
            <ion-icon name="ios-back-arrow"></ion-icon>
        </button>
    </ion-buttons>
    <ion-title>
        Service Provider Category
    </ion-title>
</ion-navbar>
Markus Werle
@daixtrose
Aug 17 2016 06:25 UTC
@robwormald That is a simulatuion of reality (TM) and the reason for sampling and updating the graphs only 4 times per second. Since CPU is around 30% we definitely do have another issue than CPU resources.
Rob Wormald
@robwormald
Aug 17 2016 06:35 UTC
yeah, but you're running way more change detection than you think you are.
you need to move your zone.runOutsideAngular calls outside the .subscribe call
Markus Werle
@daixtrose
Aug 17 2016 07:06 UTC
@robwormald Now I am curious. I am running zone calls only 4 times a second. How can this kill the app?
 this.chartUpdateTask = setInterval(() => {
      this.zone.runOutsideAngular(() => {
          this.chart.update(0, false);
      });
    }, 250);
Markus Werle
@daixtrose
Aug 17 2016 07:28 UTC
@robwormald I hope you did not go to bed now. ;-P
pshirsath
@pshirsath
Aug 17 2016 11:25 UTC
Can any one help me on this ??
Stephan Kristyn
@nottinhill
Aug 17 2016 15:26 UTC
Hi I have immense problems styling our Ionic 2 Menu
I have defined many styles (first element, list, toggles, last element you name it) in order to achieve the wanted streamlined ICON-TITLE behaviour as we all know it from thousands of apps
Is there a best practice how to do this?