{"action":"created","issue":{"url":"https://api.github.com/repos/angular/angular-cli/issues/1675","repository_url":"https://api.github.com/repos/angular/angular-cli","labels_url":"https://api.github.com/repos/angular/angular-cli/issues/1675/labels{/name}","comments_url":"https://api.github.com/repos/angular/angular-cli/issues/1675/comments","events_url":"https://api.github.com/repos/angular/angular-cli/issues/1675/events","html_url":"https://github.com/angular/angular-cli/issues/1675","id":170991122,"number":1675,"title":"A polyfill for Intl should be included by default","user":{"login":"johnchristopherjones","id":865836,"avatar_url":"https://avatars.githubusercontent.com/u/865836?v=3","gravatar_id":"","url":"https://api.github.com/users/johnchristopherjones","html_url":"https://github.com/johnchristopherjones","followers_url":"https://api.github.com/users/johnchristopherjones/followers","following_url":"https://api.github.com/users/johnchristopherjones/following{/other_user}","gists_url":"https://api.github.com/users/johnchristopherjones/gists{/gist_id}","starred_url":"https://api.github.com/users/johnchristopherjones/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/johnchristopherjones/subscriptions","organizations_url":"https://api.github.com/users/johnchristopherjones/orgs","repos_url":"https://api.github.com/users/johnchristopherjones/repos","events_url":"https://api.github.com/users/johnchristopherjones/events{/privacy}","received_events_url":"https://api.github.com/users/johnchristopherjones/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/angular/angular-cli/labels/feature:%20webpack","name":"feature: webpack","color":"fef2c0"},{"url":"https://api.github.com/repos/angular/angular-cli/labels/priority:%203%20(nice%20to%20have)","name":"priority: 3 (nice to have)","color":"0052cc"},{"url":"https://api.github.com/repos/angular/angular-cli/labels/type:%20enhancement","name":"type: enhancement","color":"eeeeee"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-08-13T03:48:28Z","updated_at":"2016-08-19T02:19:24Z","closed_at":null,"body":"On Safari 9.1.1 for OS X (macOS) El Capitan and iOS 9.3.3, Angular 2 raises an uncaught exception when any built-in formatting pipe is used.  To work in Safari, a polyfill for `Intl` must be included.\r\n\r\nThis bug can be reproduced by opening the following plnkr in Safari:\r\nhttp://plnkr.co/edit/ETQGYstBK8MF8YVF78Kj?p=preview\r\n\r\nThis bug can also be reproduced in `angular-cli`, version 1.0.0-beta.11-webpack.2:\r\n\r\n1.  Install Angular 2.0.0-rc5 using `angular-cli`:\r\n    ```bash\r\n    $ npm uninstall -g angular-cli && npm cache clean && npm install -g angular-cli@webpack\r\n    $ ng new intl-bug\r\n    ```\r\n\r\n2.  Add the following to a template in `app.component.html`:\r\n    ```html\r\n    <p>{{0.5 | percent:'1.1-1'}}</p>\r\n    ```\r\n\r\n3.  An uncaught exception will be written to the console.  The template code will not appear, anything in the template after the above segment will fail to render, no further events or change detection will be handled, … basically everything breaks right there.\r\n\r\nThis bug was filed at angular/angular#10764, but closed recommending the polyfill.  Since Angular 2's built-in formatting filters fail on Safari without the polyfill, it should probably be a best practice of `angular-cli` to include the `Intl` polyfill by default.\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/angular/angular-cli/issues/comments/240910773","html_url":"https://github.com/angular/angular-cli/issues/1675#issuecomment-240910773","issue_url":"https://api.github.com/repos/angular/angular-cli/issues/1675","id":240910773,"user":{"login":"kylecordes","id":8799,"avatar_url":"https://avatars.githubusercontent.com/u/8799?v=3","gravatar_id":"","url":"https://api.github.com/users/kylecordes","html_url":"https://github.com/kylecordes","followers_url":"https://api.github.com/users/kylecordes/followers","following_url":"https://api.github.com/users/kylecordes/following{/other_user}","gists_url":"https://api.github.com/users/kylecordes/gists{/gist_id}","starred_url":"https://api.github.com/users/kylecordes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kylecordes/subscriptions","organizations_url":"https://api.github.com/users/kylecordes/orgs","repos_url":"https://api.github.com/users/kylecordes/repos","events_url":"https://api.github.com/users/kylecordes/events{/privacy}","received_events_url":"https://api.github.com/users/kylecordes/received_events","type":"User","site_admin":false},"created_at":"2016-08-19T02:19:24Z","updated_at":"2016-08-19T02:19:24Z","body":"My usual boring suggestion, but I think worth repeating:\r\n\r\n* Find out the official supported browser list from Angular itself.\r\n* Make CLI projects support this list, by default.\r\n* Offer an option to skip support for older browsers, to reduce complexity and/or polyfill size.\r\n\r\n"}}
{"actor":{"display_login":"kylecordes"}}