{"action":"opened","issue":{"url":"https://api.github.com/repos/arielfaur/ionic-audio/issues/14","labels_url":"https://api.github.com/repos/arielfaur/ionic-audio/issues/14/labels{/name}","comments_url":"https://api.github.com/repos/arielfaur/ionic-audio/issues/14/comments","events_url":"https://api.github.com/repos/arielfaur/ionic-audio/issues/14/events","html_url":"https://github.com/arielfaur/ionic-audio/issues/14","id":101385279,"number":14,"title":"Dynamic track loading?","user":{"login":"cisnb125","id":5458889,"avatar_url":"https://avatars.githubusercontent.com/u/5458889?v=3","gravatar_id":"","url":"https://api.github.com/users/cisnb125","html_url":"https://github.com/cisnb125","followers_url":"https://api.github.com/users/cisnb125/followers","following_url":"https://api.github.com/users/cisnb125/following{/other_user}","gists_url":"https://api.github.com/users/cisnb125/gists{/gist_id}","starred_url":"https://api.github.com/users/cisnb125/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cisnb125/subscriptions","organizations_url":"https://api.github.com/users/cisnb125/orgs","repos_url":"https://api.github.com/users/cisnb125/repos","events_url":"https://api.github.com/users/cisnb125/events{/privacy}","received_events_url":"https://api.github.com/users/cisnb125/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-08-17T10:00:57Z","updated_at":"2015-08-17T10:00:57Z","closed_at":null,"body":"Hello, first of all, a huge thanks for this awesome project.\r\n\r\nI currently have an ionic-audio code block embedded in my footer like so.\r\n\r\n          <ion-audio-track track=\"myTrack\">\r\n            <ion-audio-controls>\r\n              <a class=\"button button-icon icon\" ion-audio-play></a>\r\n              <ion-spinner icon=\"ios\"></ion-spinner>\r\n            </ion-audio-controls>\r\n          </ion-audio-track>\r\n\r\nIn my controller, $scope.myTrack is dynamically loaded. Whenever my ionic slider changes, the event triggers the following function:\r\n\r\n    $scope.slideChanged = function(index) {\r\n      $scope.slideIndex = index;\r\n      var newAudio = $scope.data[index]\r\n  \r\n      $scope.track = {\r\n        url: newAudio.path,\r\n        artist: newAudio.artist,\r\n        title: newAudio.title\r\n      };\r\n    };\r\n\r\nUpon the update, when I click the \"play\" ion-audio-controls button, ionic-audio fails with the following console message:\r\n\r\nError: undefined is not an object (evaluating 'currentTrack.title')\r\nplay@http://210.206.246.152:8100/lib/ionic-audio/dist/ion-audio.js:140:69\r\nhttp://210.206.246.152:8100/lib/ionic-audio/dist/ion-audio.js:200:25\r\nhttp://210.206.246.152:8100/lib/ionic/js/ionic.bundle.js:24922:30\r\ncompleteOutstandingRequest@http://210.206.246.152:8100/lib/ionic/js/ionic.bundle.js:13604:15\r\nhttp://210.206.246.152:8100/lib/ionic/js/ionic.bundle.js:13984:33\r\n\r\nIs this feature not available currently?"}}