{"action":"created","issue":{"url":"https://api.github.com/repos/angular/angular/issues/12322","repository_url":"https://api.github.com/repos/angular/angular","labels_url":"https://api.github.com/repos/angular/angular/issues/12322/labels{/name}","comments_url":"https://api.github.com/repos/angular/angular/issues/12322/comments","events_url":"https://api.github.com/repos/angular/angular/issues/12322/events","html_url":"https://github.com/angular/angular/pull/12322","id":183199098,"number":12322,"title":"feat(platform browser): introduce Meta service","user":{"login":"DzmitryShylovich","id":9335533,"avatar_url":"https://avatars.githubusercontent.com/u/9335533?v=3","gravatar_id":"","url":"https://api.github.com/users/DzmitryShylovich","html_url":"https://github.com/DzmitryShylovich","followers_url":"https://api.github.com/users/DzmitryShylovich/followers","following_url":"https://api.github.com/users/DzmitryShylovich/following{/other_user}","gists_url":"https://api.github.com/users/DzmitryShylovich/gists{/gist_id}","starred_url":"https://api.github.com/users/DzmitryShylovich/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DzmitryShylovich/subscriptions","organizations_url":"https://api.github.com/users/DzmitryShylovich/orgs","repos_url":"https://api.github.com/users/DzmitryShylovich/repos","events_url":"https://api.github.com/users/DzmitryShylovich/events{/privacy}","received_events_url":"https://api.github.com/users/DzmitryShylovich/received_events","type":"User","site_admin":false},"labels":[{"id":149476251,"url":"https://api.github.com/repos/angular/angular/labels/cla:%20yes","name":"cla: yes","color":"009800","default":false},{"id":375501288,"url":"https://api.github.com/repos/angular/angular/labels/comp:%20core%20&%20compiler","name":"comp: core & compiler","color":"c7def8","default":false},{"id":135584804,"url":"https://api.github.com/repos/angular/angular/labels/pr_action:%20cleanup","name":"pr_action: cleanup","color":"e11d21","default":false},{"id":133556155,"url":"https://api.github.com/repos/angular/angular/labels/pr_state:%20LGTM","name":"pr_state: LGTM","color":"009800","default":false}],"state":"open","locked":false,"assignee":{"login":"jeffbcross","id":463703,"avatar_url":"https://avatars.githubusercontent.com/u/463703?v=3","gravatar_id":"","url":"https://api.github.com/users/jeffbcross","html_url":"https://github.com/jeffbcross","followers_url":"https://api.github.com/users/jeffbcross/followers","following_url":"https://api.github.com/users/jeffbcross/following{/other_user}","gists_url":"https://api.github.com/users/jeffbcross/gists{/gist_id}","starred_url":"https://api.github.com/users/jeffbcross/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jeffbcross/subscriptions","organizations_url":"https://api.github.com/users/jeffbcross/orgs","repos_url":"https://api.github.com/users/jeffbcross/repos","events_url":"https://api.github.com/users/jeffbcross/events{/privacy}","received_events_url":"https://api.github.com/users/jeffbcross/received_events","type":"User","site_admin":false},"assignees":[{"login":"jeffbcross","id":463703,"avatar_url":"https://avatars.githubusercontent.com/u/463703?v=3","gravatar_id":"","url":"https://api.github.com/users/jeffbcross","html_url":"https://github.com/jeffbcross","followers_url":"https://api.github.com/users/jeffbcross/followers","following_url":"https://api.github.com/users/jeffbcross/following{/other_user}","gists_url":"https://api.github.com/users/jeffbcross/gists{/gist_id}","starred_url":"https://api.github.com/users/jeffbcross/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jeffbcross/subscriptions","organizations_url":"https://api.github.com/users/jeffbcross/orgs","repos_url":"https://api.github.com/users/jeffbcross/repos","events_url":"https://api.github.com/users/jeffbcross/events{/privacy}","received_events_url":"https://api.github.com/users/jeffbcross/received_events","type":"User","site_admin":false}],"milestone":null,"comments":18,"created_at":"2016-10-15T09:18:02Z","updated_at":"2016-11-20T19:48:26Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/angular/angular/pulls/12322","html_url":"https://github.com/angular/angular/pull/12322","diff_url":"https://github.com/angular/angular/pull/12322.diff","patch_url":"https://github.com/angular/angular/pull/12322.patch"},"body":"Fixes https://github.com/angular/angular/issues/11115\n"},"comment":{"url":"https://api.github.com/repos/angular/angular/issues/comments/261800452","html_url":"https://github.com/angular/angular/pull/12322#issuecomment-261800452","issue_url":"https://api.github.com/repos/angular/angular/issues/12322","id":261800452,"user":{"login":"samvloeberghs","id":231618,"avatar_url":"https://avatars.githubusercontent.com/u/231618?v=3","gravatar_id":"","url":"https://api.github.com/users/samvloeberghs","html_url":"https://github.com/samvloeberghs","followers_url":"https://api.github.com/users/samvloeberghs/followers","following_url":"https://api.github.com/users/samvloeberghs/following{/other_user}","gists_url":"https://api.github.com/users/samvloeberghs/gists{/gist_id}","starred_url":"https://api.github.com/users/samvloeberghs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/samvloeberghs/subscriptions","organizations_url":"https://api.github.com/users/samvloeberghs/orgs","repos_url":"https://api.github.com/users/samvloeberghs/repos","events_url":"https://api.github.com/users/samvloeberghs/events{/privacy}","received_events_url":"https://api.github.com/users/samvloeberghs/received_events","type":"User","site_admin":false},"created_at":"2016-11-20T19:48:26Z","updated_at":"2016-11-20T19:48:26Z","body":"@gdi2290 I have solved this by checking if the tags already exists..\r\n\r\n```\r\n private getOrCreateElement(name: string, attr: string, type: string = 'meta'): HTMLElement {\r\n    let el: HTMLElement = this.getElement(name, attr);\r\n    if (!el) {\r\n      el = this.createElement(name, attr, type);\r\n      this.dom.insertBefore(this.document.head.lastChild, el);\r\n    }\r\n    return el;\r\n  }\r\n\r\n  private createElement(name: string, attr: string, type: string = 'meta'): HTMLElement {\r\n    let el: HTMLElement = this.dom.createElement(type);\r\n    this.setElementAttribute(el, attr, name);\r\n    return el;\r\n  }\r\n\r\n  private getElement(name: string, attr: string): HTMLElement {\r\n    if (isBrowser && this.document.querySelector) {\r\n      return this.document.querySelector('[' + attr + '=\"' + name + '\"]');\r\n    }\r\n    return undefined;\r\n  }\r\n\r\n  private setElementAttribute(el: HTMLElement, name: string, attr: string) {\r\n    return this.dom.setAttribute(el, name, attr);\r\n  }\r\n```"}}
{"actor":{"display_login":"samvloeberghs"}}