I'm displaying a list using lazy loading with some articles. When I go back to this after going to one of them the list scrolls to the top.
This apparently was fixed on Ionic 1 (https://forum.ionicframework.com/t/on-coming-back-from-details-to-list-page-the-scroll-position-goes-back-on-top-list-data-loaded-by-async-task/1432/10) but not sure how can I implement this using Ionic 3.
I could save position on ionViewDidLeave and get it on ionViewDidEnter but it should be an Ionic way
Related
I'm using Ionic Tabs layout for my ionic3 application. Inside 1st tabpage, i have 2 ionic-segments (both of them have their own pages.).
Issue is when i click 1st Ionic-tab it then 2 segments are displayed properly but Page content of any of segments are not displaying.
For detailed information, please visit below question link i've posted to ionic forum.
https://forum.ionicframework.com/t/ionic-segment-inside-ionic-tab-not-displaying-child-page-properly/176151
I just converted my Page into Component and it's working as expected now.
So, I built an Ionic application, using the sidemenu bar, some and made a few CRUDs.
I'm very newbie in Ionic, but I noticed a laggy transition when I slide, when I click, sometimes I have to click twice on a button to get a response.
I'm using lazy loading already, but what else can I do in order to improve my sliding experiences?
I'm using the latest ionic 1 version 1.3.3.
I've a list of items. On click any of them, it opens the ion-slides with few left and right items (which I'm letting it to control dynamic). The issue is when the slider gets ready, it shows the correct index for the first or couple of time. But shows the first index afterwards when we come back to the list and click on another item.
I've used $scope.slider.slideTo to update the index. I also destroy slides instance before leaving but didn't get success.
Looks like it was not .slideTo() bug. But I think they should provide callbacks for the update methods.
Actually I've binded ng-hide on the slider for the loading.
So the slider was unable to render until the list is prepared. I was updating the index and then toggling the loading.
Resulting conflicts with update slide and index.
I placed style visibility: hidden with ngclass instead of ng-hide. It works perfect.
strong textwant to implement swipe news in ionic like in-shorts app .i want to show vertical view inside ionic content anyone help me out for this.https://github.com/vikrantsharma123/ios-inshorts-view
am newbie to ionic. I try to add dynamic data to the top of my list, in this scenario ionic scroll doesn't work properly, other thing is newly added item ll not visible by default, to view new item , we need to scroll to up.I think we need to re-initiate ionic scrolling after new item added but i cant find out how to do. Any one have this trouble or found any solution for this problem. share with me in this post.
Is there any config settings available to re-initiate scroll after event occurs?
I don't fully understand your question, but if want to reinitialise scroll after dynamic data addition , you can use a work around like I do.
In your event, after data is added to your DOM. Call this.
$ionicScrollDelegate.scrollTo(0,$ionicScrollDelegate.getScrollPosition().top,true);