{"action":"created","issue":{"url":"https://api.github.com/repos/ionic-team/ionic/issues/14227","repository_url":"https://api.github.com/repos/ionic-team/ionic","labels_url":"https://api.github.com/repos/ionic-team/ionic/issues/14227/labels{/name}","comments_url":"https://api.github.com/repos/ionic-team/ionic/issues/14227/comments","events_url":"https://api.github.com/repos/ionic-team/ionic/issues/14227/events","html_url":"https://github.com/ionic-team/ionic/issues/14227","id":308271528,"node_id":"MDU6SXNzdWUzMDgyNzE1Mjg=","number":14227,"title":"Ionic 3 slideTo not working.","user":{"login":"shahrushabh1996","id":22232984,"node_id":"MDQ6VXNlcjIyMjMyOTg0","avatar_url":"https://avatars1.githubusercontent.com/u/22232984?v=4","gravatar_id":"","url":"https://api.github.com/users/shahrushabh1996","html_url":"https://github.com/shahrushabh1996","followers_url":"https://api.github.com/users/shahrushabh1996/followers","following_url":"https://api.github.com/users/shahrushabh1996/following{/other_user}","gists_url":"https://api.github.com/users/shahrushabh1996/gists{/gist_id}","starred_url":"https://api.github.com/users/shahrushabh1996/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shahrushabh1996/subscriptions","organizations_url":"https://api.github.com/users/shahrushabh1996/orgs","repos_url":"https://api.github.com/users/shahrushabh1996/repos","events_url":"https://api.github.com/users/shahrushabh1996/events{/privacy}","received_events_url":"https://api.github.com/users/shahrushabh1996/received_events","type":"User","site_admin":false},"labels":[{"id":1109084545,"node_id":"MDU6TGFiZWwxMTA5MDg0NTQ1","url":"https://api.github.com/repos/ionic-team/ionic/labels/ionitron:%20v3","name":"ionitron: v3","color":"444444","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":7,"created_at":"2018-03-24T15:27:58Z","updated_at":"2018-12-08T09:16:23Z","closed_at":null,"author_association":"NONE","body":"**Ionic version: (check one with \"x\")**\r\n(For Ionic 1.x issues, please use https://github.com/ionic-team/ionic-v1)\r\n[ ] 2.x\r\n[X] 3.x\r\n[ ] 4.x\r\n\r\n**I'm submitting a ... (check one with \"x\")**\r\n[X] bug report\r\n[ ] feature request\r\n\r\n\r\n**Related code:**\r\n\r\n```\r\nimport { Component, ViewChild } from '@angular/core';\r\nimport { IonicPage, NavController, NavParams, Slides } from 'ionic-angular';\r\nimport { PhotoViewer } from '@ionic-native/photo-viewer';\r\n\r\n/**\r\n * Generated class for the SliderPage page.\r\n *\r\n * See https://ionicframework.com/docs/components/#navigation for more info on\r\n * Ionic pages and navigation.\r\n */\r\n\r\n@IonicPage()\r\n@Component({\r\n  selector: 'page-slider',\r\n  templateUrl: 'slider.html',\r\n})\r\nexport class SliderPage {\r\n\r\n  @ViewChild(Slides) slides: Slides;\r\n\r\n  images: any;\r\n\r\n  active_slide_index: number = 1;\r\n\r\n  constructor(public navCtrl: NavController, public navParams: NavParams, public photoViewer: PhotoViewer) {\r\n    this.images = navParams.get('images');\r\n    this.active_slide_index = navParams.get('active_slide_index');\r\n  }\r\n\r\n  ionViewDidLoad() {\r\n    console.log('ionViewDidLoad SliderPage');\r\n  }\r\n\r\n  ngAfterViewInit() {\r\n    this.slides.slideTo(active_slide_index, 500);\r\n  }\r\n\r\n  zoomImage(image) {\r\n    this.photoViewer.show(image);\r\n  }\r\n\r\n}\r\n```\r\n\r\n```\r\n<!--\r\n  Generated template for the DetailPage page.\r\n\r\n  See http://ionicframework.com/docs/components/#navigation for more info on\r\n  Ionic pages and navigation.\r\n-->\r\n<ion-header>\r\n\r\n  <ion-navbar>\r\n    <ion-title class=\"capitalize\">Slider</ion-title>\r\n  </ion-navbar>\r\n\r\n</ion-header>\r\n\r\n\r\n<ion-content>\r\n\t<ion-slides>\r\n\t\t<ion-slide *ngFor=\"let image of images\"  (click)=\"zoomImage(image)\">\r\n\t\t  <img src=\"{{image}}\" />\r\n\t\t</ion-slide>\r\n\t</ion-slides>\r\n</ion-content>\r\n```\r\n**Ionic info:** (run ionic info from a terminal/cmd prompt and paste output below):\r\n\r\nUncaught (in promise): TypeError: Cannot read property 'length' of undefined\r\nTypeError: Cannot read property 'length' of undefined\r\n    at slideTo (http://localhost:8100/build/vendor.js:50386:37)\r\n    at Slides.slideTo (http://localhost:8100/build/vendor.js:59861:80)\r\n    at SliderPage.webpackJsonp.309.SliderPage.ngAfterViewInit (http://localhost:8100/build/2.js:80:21)\r\n    at callProviderLifecycles (http://localhost:8100/build/vendor.js:12782:18)\r\n    at callElementProvidersLifecycles (http://localhost:8100/build/vendor.js:12753:13)\r\n    at callLifecycleHooksChildrenFirst (http://localhost:8100/build/vendor.js:12737:17)\r\n    at checkAndUpdateView (http://localhost:8100/build/vendor.js:13870:5)\r\n    at callWithDebugContext (http://localhost:8100/build/vendor.js:15094:42)\r\n    at Object.debugCheckAndUpdateView [as checkAndUpdateView] (http://localhost:8100/build/vendor.js:14631:12)\r\n    at ViewRef_.detectChanges (http://localhost:8100/build/vendor.js:11654:18)\r\n\r\nIonic Framework: 3.9.2\r\nIonic App Scripts: 3.1.8\r\nAngular Core: 5.0.3\r\nAngular Compiler CLI: 5.0.3\r\nNode: 8.10.0\r\nOS Platform: Windows 8.1\r\nNavigator Platform: Win32\r\nUser Agent: Mozilla/5.0 (Windows NT 6.3; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/65.0.3325.181 Safari/537.36\r\n\r\nHi ionic team here is a new bug can you please tell me How can I solve this?\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/ionic-team/ionic/issues/comments/445444910","html_url":"https://github.com/ionic-team/ionic/issues/14227#issuecomment-445444910","issue_url":"https://api.github.com/repos/ionic-team/ionic/issues/14227","id":445444910,"node_id":"MDEyOklzc3VlQ29tbWVudDQ0NTQ0NDkxMA==","user":{"login":"ionitron-bot[bot]","id":35967572,"node_id":"MDM6Qm90MzU5Njc1NzI=","avatar_url":"https://avatars1.githubusercontent.com/in/8640?v=4","gravatar_id":"","url":"https://api.github.com/users/ionitron-bot%5Bbot%5D","html_url":"https://github.com/apps/ionitron-bot","followers_url":"https://api.github.com/users/ionitron-bot%5Bbot%5D/followers","following_url":"https://api.github.com/users/ionitron-bot%5Bbot%5D/following{/other_user}","gists_url":"https://api.github.com/users/ionitron-bot%5Bbot%5D/gists{/gist_id}","starred_url":"https://api.github.com/users/ionitron-bot%5Bbot%5D/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ionitron-bot%5Bbot%5D/subscriptions","organizations_url":"https://api.github.com/users/ionitron-bot%5Bbot%5D/orgs","repos_url":"https://api.github.com/users/ionitron-bot%5Bbot%5D/repos","events_url":"https://api.github.com/users/ionitron-bot%5Bbot%5D/events{/privacy}","received_events_url":"https://api.github.com/users/ionitron-bot%5Bbot%5D/received_events","type":"Bot","site_admin":false},"created_at":"2018-12-08T09:16:23Z","updated_at":"2018-12-08T09:16:23Z","author_association":"NONE","body":"Issue moved to: https://github.com/ionic-team/ionic-v3/issues/854"}}
{"actor":{"display_login":"ionitron-bot"}}