{"action":"closed","issue":{"url":"https://api.github.com/repos/ngx-translate/core/issues/457","repository_url":"https://api.github.com/repos/ngx-translate/core","labels_url":"https://api.github.com/repos/ngx-translate/core/issues/457/labels{/name}","comments_url":"https://api.github.com/repos/ngx-translate/core/issues/457/comments","events_url":"https://api.github.com/repos/ngx-translate/core/issues/457/events","html_url":"https://github.com/ngx-translate/core/issues/457","id":211895468,"number":457,"title":"Directive within ngPlural fails","user":{"login":"Waitak","id":130435,"avatar_url":"https://avatars1.githubusercontent.com/u/130435?v=4","gravatar_id":"","url":"https://api.github.com/users/Waitak","html_url":"https://github.com/Waitak","followers_url":"https://api.github.com/users/Waitak/followers","following_url":"https://api.github.com/users/Waitak/following{/other_user}","gists_url":"https://api.github.com/users/Waitak/gists{/gist_id}","starred_url":"https://api.github.com/users/Waitak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Waitak/subscriptions","organizations_url":"https://api.github.com/users/Waitak/orgs","repos_url":"https://api.github.com/users/Waitak/repos","events_url":"https://api.github.com/users/Waitak/events{/privacy}","received_events_url":"https://api.github.com/users/Waitak/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2017-03-04T17:59:02Z","updated_at":"2018-05-08T13:06:59Z","closed_at":"2018-05-08T13:06:59Z","author_association":"NONE","body":"**I'm submitting a ...**  (check one with \"x\")\r\n```\r\n[x] bug report => check the FAQ and search github for a similar issue or PR before submitting\r\n[ ] support request => check the FAQ and search github for a similar issue before submitting\r\n[ ] feature request\r\n```\r\n\r\n**Current behavior**\r\n\r\nI'm attempting to do:\r\n\r\n    <span [ngPlural]=\"form.controls.items.length\">\r\n      <template ngPluralCase=\"=0\">{{'ITEM.PLURAL_ZERO'|translate}}</template>\r\n      <template ngPluralCase=\"=1\">{{'ITEM.PLURAL_ONE'|translate}}</template>\r\n      <template ngPluralCase=\"other\" translate [translateParams]=\"{count: form.controls.items.length}\">ITEM.PLURAL_OTHER</template>\r\n    </span>\r\n\r\nwhere the translations are defined as:\r\n\r\n    {\r\n        \"ITEM\": {\r\n            \"PLURAL_ZERO\": \"No items\",\r\n            \"PLURAL_ONE\": \"One item\",\r\n            \"PLURAL_OTHER\": \"{count} items\"\r\n        }\r\n    }\r\n\r\n**Expected/desired behavior**\r\n\r\nI expect the same behavior with the directive as with the pipe. The pipe works, the directive doesn't.\r\n\r\n**Reproduction of the problem**\r\n\r\nThe behavior is illustrated here:\r\n\r\nhttp://plnkr.co/edit/NqCrSco4P7kaPpbZLMCE\r\n\r\n**What is the expected behavior?**\r\n\r\nAs above\r\n\r\n**What is the motivation / use case for changing the behavior?**\r\n\r\nUsing translate with plurals.\r\n"}}
{"actor":{"display_login":"ocombe"}}