{"action":"created","issue":{"url":"https://api.github.com/repos/driftyco/ionic/issues/6137","repository_url":"https://api.github.com/repos/driftyco/ionic","labels_url":"https://api.github.com/repos/driftyco/ionic/issues/6137/labels{/name}","comments_url":"https://api.github.com/repos/driftyco/ionic/issues/6137/comments","events_url":"https://api.github.com/repos/driftyco/ionic/issues/6137/events","html_url":"https://github.com/driftyco/ionic/issues/6137","id":147840958,"number":6137,"title":"VirtualScroll not working with nested objects","user":{"login":"nickgal","id":913141,"avatar_url":"https://avatars.githubusercontent.com/u/913141?v=3","gravatar_id":"","url":"https://api.github.com/users/nickgal","html_url":"https://github.com/nickgal","followers_url":"https://api.github.com/users/nickgal/followers","following_url":"https://api.github.com/users/nickgal/following{/other_user}","gists_url":"https://api.github.com/users/nickgal/gists{/gist_id}","starred_url":"https://api.github.com/users/nickgal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nickgal/subscriptions","organizations_url":"https://api.github.com/users/nickgal/orgs","repos_url":"https://api.github.com/users/nickgal/repos","events_url":"https://api.github.com/users/nickgal/events{/privacy}","received_events_url":"https://api.github.com/users/nickgal/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/driftyco/ionic/labels/platform:ios","name":"platform:ios","color":"0052cc"},{"url":"https://api.github.com/repos/driftyco/ionic/labels/v2","name":"v2","color":"313744"},{"url":"https://api.github.com/repos/driftyco/ionic/labels/virtualscroll","name":"virtualscroll","color":"5319e7"}],"state":"open","locked":false,"assignee":{"login":"adamdbradley","id":452425,"avatar_url":"https://avatars.githubusercontent.com/u/452425?v=3","gravatar_id":"","url":"https://api.github.com/users/adamdbradley","html_url":"https://github.com/adamdbradley","followers_url":"https://api.github.com/users/adamdbradley/followers","following_url":"https://api.github.com/users/adamdbradley/following{/other_user}","gists_url":"https://api.github.com/users/adamdbradley/gists{/gist_id}","starred_url":"https://api.github.com/users/adamdbradley/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adamdbradley/subscriptions","organizations_url":"https://api.github.com/users/adamdbradley/orgs","repos_url":"https://api.github.com/users/adamdbradley/repos","events_url":"https://api.github.com/users/adamdbradley/events{/privacy}","received_events_url":"https://api.github.com/users/adamdbradley/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/driftyco/ionic/milestones/36","html_url":"https://github.com/driftyco/ionic/milestones/2.0.0-beta.7","labels_url":"https://api.github.com/repos/driftyco/ionic/milestones/36/labels","id":1576399,"number":36,"title":"2.0.0-beta.7","description":"Date/time inputs, Slides, Swipe between tabs, Floating Action Buttons\r\n","creator":{"login":"brandyscarney","id":6577830,"avatar_url":"https://avatars.githubusercontent.com/u/6577830?v=3","gravatar_id":"","url":"https://api.github.com/users/brandyscarney","html_url":"https://github.com/brandyscarney","followers_url":"https://api.github.com/users/brandyscarney/followers","following_url":"https://api.github.com/users/brandyscarney/following{/other_user}","gists_url":"https://api.github.com/users/brandyscarney/gists{/gist_id}","starred_url":"https://api.github.com/users/brandyscarney/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brandyscarney/subscriptions","organizations_url":"https://api.github.com/users/brandyscarney/orgs","repos_url":"https://api.github.com/users/brandyscarney/repos","events_url":"https://api.github.com/users/brandyscarney/events{/privacy}","received_events_url":"https://api.github.com/users/brandyscarney/received_events","type":"User","site_admin":false},"open_issues":34,"closed_issues":13,"state":"open","created_at":"2016-02-10T20:18:54Z","updated_at":"2016-04-29T21:37:53Z","due_on":null,"closed_at":null},"comments":1,"created_at":"2016-04-12T18:52:41Z","updated_at":"2016-05-01T14:15:59Z","closed_at":null,"body":"#### Short description of the problem:\r\nException when using nested objects with virtual scroll.\r\n\r\n#### What behavior are you expecting?\r\nAccess to nested properties.\r\n\r\n**Steps to reproduce:**\r\n1. Create virtual scroll with an array of nested objects\r\n2. Try to scroll past the initial items\r\n\r\n```js\r\n// example nested object\r\n{ \r\n  title: 'Title', \r\n  author: { \r\n    name: 'Name'\r\n  }\r\n}\r\n```\r\n\r\n**Other information:** (e.g. stacktraces, related issues, suggestions how to fix, stackoverflow links, forum links, etc)\r\n \r\n```\r\nangular2.dev.js:23877 TypeError: Cannot read property 'name' of undefined\r\n    at AbstractChangeDetector.ChangeDetector_HomePage_2.detectChangesInRecordsInternal (viewFactory_HomePage:246)\r\n    at AbstractChangeDetector.detectChangesInRecords (angular2.dev.js:9609)\r\n    at AbstractChangeDetector.runDetectChanges (angular2.dev.js:9592)\r\n    at AbstractChangeDetector._detectChangesContentChildren (angular2.dev.js:9665)\r\n    at AbstractChangeDetector.runDetectChanges (angular2.dev.js:9593)\r\n    at AbstractChangeDetector.detectChanges (angular2.dev.js:9581)\r\n    at ChangeDetectorRef_.detectChanges (angular2.dev.js:5252)\r\n    at VirtualScroll.renderVirtual (ionic.system.js:25046)\r\n    at ionic.system.js:25026\r\n    at readDimensions (ionic.system.js:25009)\r\n```\r\n\r\n**Which Ionic Version?** 1.x or 2.x\r\n2 beta 4\r\n\r\n#### Plunker that shows an example of your issue\r\n\r\nhttp://plnkr.co/edit/JLlwIn3a1Ws8wavbX2Gj?p=preview\r\n\r\n\r\n**Run `ionic info` from terminal/cmd prompt:** (paste output below)\r\n\r\n```\r\nCordova CLI: 6.1.1\r\nIonic Framework Version: 2.0.0-beta.4\r\nIonic CLI Version: 2.0.0-beta.24\r\nIonic App Lib Version: 2.0.0-beta.14\r\nios-deploy version: Not installed\r\nios-sim version: Not installed\r\nOS: Mac OS X El Capitan\r\nNode Version: v5.10.0\r\nXcode version: Xcode 7.3 Build version 7D175\r\n```"},"comment":{"url":"https://api.github.com/repos/driftyco/ionic/issues/comments/216044307","html_url":"https://github.com/driftyco/ionic/issues/6137#issuecomment-216044307","issue_url":"https://api.github.com/repos/driftyco/ionic/issues/6137","id":216044307,"user":{"login":"galvanu","id":8291189,"avatar_url":"https://avatars.githubusercontent.com/u/8291189?v=3","gravatar_id":"","url":"https://api.github.com/users/galvanu","html_url":"https://github.com/galvanu","followers_url":"https://api.github.com/users/galvanu/followers","following_url":"https://api.github.com/users/galvanu/following{/other_user}","gists_url":"https://api.github.com/users/galvanu/gists{/gist_id}","starred_url":"https://api.github.com/users/galvanu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/galvanu/subscriptions","organizations_url":"https://api.github.com/users/galvanu/orgs","repos_url":"https://api.github.com/users/galvanu/repos","events_url":"https://api.github.com/users/galvanu/events{/privacy}","received_events_url":"https://api.github.com/users/galvanu/received_events","type":"User","site_admin":false},"created_at":"2016-05-01T14:15:59Z","updated_at":"2016-05-01T14:15:59Z","body":"Happens also even if the viewModel contains only primitives and the view (html) contains binding to a method of the view mode.\r\nFor example:\r\n\r\n```\r\n<ion-list [virtualScroll]=\"items\">\r\n\r\n  <ion-item *virtualItem=\"#item\">\r\n      {{item.getTitle()}}\r\n  </ion-item>\r\n\r\n</ion-list>\r\n```\r\n"}}