{"action":"created","issue":{"url":"https://api.github.com/repos/bradmartin/nativescript-videoplayer/issues/42","repository_url":"https://api.github.com/repos/bradmartin/nativescript-videoplayer","labels_url":"https://api.github.com/repos/bradmartin/nativescript-videoplayer/issues/42/labels{/name}","comments_url":"https://api.github.com/repos/bradmartin/nativescript-videoplayer/issues/42/comments","events_url":"https://api.github.com/repos/bradmartin/nativescript-videoplayer/issues/42/events","html_url":"https://github.com/bradmartin/nativescript-videoplayer/issues/42","id":184034547,"number":42,"title":"Video Not Loading in Angular 2 and Nativescript","user":{"login":"joshapgar","id":7561481,"avatar_url":"https://avatars.githubusercontent.com/u/7561481?v=3","gravatar_id":"","url":"https://api.github.com/users/joshapgar","html_url":"https://github.com/joshapgar","followers_url":"https://api.github.com/users/joshapgar/followers","following_url":"https://api.github.com/users/joshapgar/following{/other_user}","gists_url":"https://api.github.com/users/joshapgar/gists{/gist_id}","starred_url":"https://api.github.com/users/joshapgar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joshapgar/subscriptions","organizations_url":"https://api.github.com/users/joshapgar/orgs","repos_url":"https://api.github.com/users/joshapgar/repos","events_url":"https://api.github.com/users/joshapgar/events{/privacy}","received_events_url":"https://api.github.com/users/joshapgar/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-10-19T18:08:51Z","updated_at":"2016-10-19T18:21:19Z","closed_at":null,"body":"I have added the code to my template, but it is not showing in the app.  Do you have to reference the code in the template differently in an Angular 2 and Nativescript application?\r\n\r\nTemplate Code:\r\n```\r\n<StackLayout>\r\n    <Label text=\"Grand Hall\"></Label>\r\n    <VideoPlayer:Video #nativeVideoPlayer controls=\"true\" autoplay=\"true\" height=\"280\" src=\"https://clips.vorwaerts-gmbh.de/big_buck_bunny.mp4\" />\r\n</StackLayout>\r\n```\r\n\r\nComponent Code:\r\n```\r\nimport { Component, ElementRef, ViewChild } from \"@angular/core\";\r\nimport { Video } from 'nativescript-videoplayer';\r\n\r\n\r\n@Component({\r\n\tselector: \"grandhall\",\r\n\ttemplateUrl: \"pages/grandhall/grandhall.html\",\r\n\tstyleUrls: [\"pages/grandhall/grandhall-common.css\", \"pages/grandhall/grandhall.css\"]\r\n})\r\n\r\nexport class GrandHallComponent {\r\n\t@ViewChild(\"nativeVideoPlayer\") nativeVideoPlayer: ElementRef;\r\n}\t\r\n```"},"comment":{"url":"https://api.github.com/repos/bradmartin/nativescript-videoplayer/issues/comments/254898001","html_url":"https://github.com/bradmartin/nativescript-videoplayer/issues/42#issuecomment-254898001","issue_url":"https://api.github.com/repos/bradmartin/nativescript-videoplayer/issues/42","id":254898001,"user":{"login":"bradmartin","id":6006148,"avatar_url":"https://avatars.githubusercontent.com/u/6006148?v=3","gravatar_id":"","url":"https://api.github.com/users/bradmartin","html_url":"https://github.com/bradmartin","followers_url":"https://api.github.com/users/bradmartin/followers","following_url":"https://api.github.com/users/bradmartin/following{/other_user}","gists_url":"https://api.github.com/users/bradmartin/gists{/gist_id}","starred_url":"https://api.github.com/users/bradmartin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bradmartin/subscriptions","organizations_url":"https://api.github.com/users/bradmartin/orgs","repos_url":"https://api.github.com/users/bradmartin/repos","events_url":"https://api.github.com/users/bradmartin/events{/privacy}","received_events_url":"https://api.github.com/users/bradmartin/received_events","type":"User","site_admin":false},"created_at":"2016-10-19T18:21:19Z","updated_at":"2016-10-19T18:21:19Z","body":"I think I answered your question on SO not long after you posted. The NS slack channel has a bot that links SO questions so I saw it not long after it posted. \r\n\r\n`registerElement` is what you're missing. I've also added this to the README."}}
{"actor":{"display_login":"bradmartin"}}