{"action":"created","issue":{"url":"https://api.github.com/repos/jvandemo/angular-update-meta/issues/10","labels_url":"https://api.github.com/repos/jvandemo/angular-update-meta/issues/10/labels{/name}","comments_url":"https://api.github.com/repos/jvandemo/angular-update-meta/issues/10/comments","events_url":"https://api.github.com/repos/jvandemo/angular-update-meta/issues/10/events","html_url":"https://github.com/jvandemo/angular-update-meta/issues/10","id":122851772,"number":10,"title":"Update an array of values - prevent overwrite of content for same property","user":{"login":"frioles","id":10172608,"avatar_url":"https://avatars.githubusercontent.com/u/10172608?v=3","gravatar_id":"","url":"https://api.github.com/users/frioles","html_url":"https://github.com/frioles","followers_url":"https://api.github.com/users/frioles/followers","following_url":"https://api.github.com/users/frioles/following{/other_user}","gists_url":"https://api.github.com/users/frioles/gists{/gist_id}","starred_url":"https://api.github.com/users/frioles/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/frioles/subscriptions","organizations_url":"https://api.github.com/users/frioles/orgs","repos_url":"https://api.github.com/users/frioles/repos","events_url":"https://api.github.com/users/frioles/events{/privacy}","received_events_url":"https://api.github.com/users/frioles/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-12-18T00:25:58Z","updated_at":"2015-12-18T07:52:55Z","closed_at":null,"body":"Does this plugin support updating multiple values for the same property? For example,\r\n```\r\n<update-meta property=\"article:tag\" content=\"one\" />\r\n<update-meta property=\"article:tag\" content=\"two\" />\r\n<update-meta property=\"article:tag\" content=\"three\" />\r\n<update-meta property=\"article:tag\" content=\"four\" />\r\n```\r\n\r\nRight now it seems like if there's an array, each update overwrites the last, so that what shows up is just\r\n```\r\n<meta property=\"article:tag\" content=\"four\">\r\n<meta property=\"article:tag\" content=\"\">\r\n<meta property=\"article:tag\" content=\"\">\r\n<meta property=\"article:tag\" content=\"\">\r\n```\r\neven if I've defined \r\n```\r\n<meta property=\"article:tag\" content=\"\">\r\n<meta property=\"article:tag\" content=\"\">\r\n<meta property=\"article:tag\" content=\"\">\r\n<meta property=\"article:tag\" content=\"\">\r\n```"},"comment":{"url":"https://api.github.com/repos/jvandemo/angular-update-meta/issues/comments/165705940","html_url":"https://github.com/jvandemo/angular-update-meta/issues/10#issuecomment-165705940","issue_url":"https://api.github.com/repos/jvandemo/angular-update-meta/issues/10","id":165705940,"user":{"login":"jvandemo","id":1859381,"avatar_url":"https://avatars.githubusercontent.com/u/1859381?v=3","gravatar_id":"","url":"https://api.github.com/users/jvandemo","html_url":"https://github.com/jvandemo","followers_url":"https://api.github.com/users/jvandemo/followers","following_url":"https://api.github.com/users/jvandemo/following{/other_user}","gists_url":"https://api.github.com/users/jvandemo/gists{/gist_id}","starred_url":"https://api.github.com/users/jvandemo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jvandemo/subscriptions","organizations_url":"https://api.github.com/users/jvandemo/orgs","repos_url":"https://api.github.com/users/jvandemo/repos","events_url":"https://api.github.com/users/jvandemo/events{/privacy}","received_events_url":"https://api.github.com/users/jvandemo/received_events","type":"User","site_admin":false},"created_at":"2015-12-18T07:52:55Z","updated_at":"2015-12-18T07:52:55Z","body":"@frioles &mdash; Unfortunately this cannot be accomplished with the `update-meta` directive. The `update-meta` directive would not know which `meta` element to update in case there is more than one `meta` element with the same property name.\r\n\r\nHowever, you can accomplish this using code:\r\n\r\n- create a service to store your meta data\r\n- from the controller of a page: add meta data to your service\r\n- in your `HEAD` element, read meta data from the service and generate `meta` elements using `ng-repeat`\r\n\r\nDoes that make sense? Thanks!\r\n\r\n"}}