2017-05-26 21:28:06 +02:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								# Browser support
  
						 
					
						
							
								
									
										
										
										
											2017-04-01 01:57:13 +02:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2017-02-22 18:09:39 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								Angular supports most recent browsers. This includes the following specific versions:
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								< table >  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								  < tr > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2018-01-30 12:56:20 -08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								< th >  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								      Browser
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								< / th >  
						 
					
						
							
								
									
										
										
										
											2017-02-22 18:09:39 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2018-01-30 12:56:20 -08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								< th >  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								      Supported versions
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								< / th >  
						 
					
						
							
								
									
										
										
										
											2017-02-22 18:09:39 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								  < / tr > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								  < tr > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    < td > 
							 
						 
					
						
							
								
									
										
										
										
											2018-01-30 12:56:20 -08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								      Chrome
							 
						 
					
						
							
								
									
										
										
										
											2017-02-22 18:09:39 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								    < / td > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    < td > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								      latest
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    < / td > 
							 
						 
					
						
							
								
									
										
										
										
											2018-01-30 12:56:20 -08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								  < / tr > 
							 
						 
					
						
							
								
									
										
										
										
											2017-02-22 18:09:39 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2018-01-30 12:56:20 -08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								  < tr > 
							 
						 
					
						
							
								
									
										
										
										
											2017-02-22 18:09:39 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    < td > 
							 
						 
					
						
							
								
									
										
										
										
											2018-01-30 12:56:20 -08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								      Firefox
							 
						 
					
						
							
								
									
										
										
										
											2017-02-22 18:09:39 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								    < / td > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    < td > 
							 
						 
					
						
							
								
									
										
										
										
											2020-05-07 11:33:15 +02:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								      latest and extended support release (ESR)
							 
						 
					
						
							
								
									
										
										
										
											2017-02-22 18:09:39 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								    < / td > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								  < / tr > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								  < tr > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    < td > 
							 
						 
					
						
							
								
									
										
										
										
											2018-01-30 12:56:20 -08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								      Edge
							 
						 
					
						
							
								
									
										
										
										
											2017-02-22 18:09:39 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								    < / td > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    < td > 
							 
						 
					
						
							
								
									
										
										
										
											2018-01-30 12:56:20 -08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								      2 most recent major versions
							 
						 
					
						
							
								
									
										
										
										
											2017-02-22 18:09:39 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								    < / td > 
							 
						 
					
						
							
								
									
										
										
										
											2018-01-30 12:56:20 -08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								  < / tr > 
							 
						 
					
						
							
								
									
										
										
										
											2019-06-18 12:40:25 -07:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								  < tr > 
							 
						 
					
						
							
								
									
										
										
										
											2017-02-22 18:09:39 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								    < td > 
							 
						 
					
						
							
								
									
										
										
										
											2018-01-30 12:56:20 -08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								      IE
							 
						 
					
						
							
								
									
										
										
										
											2017-02-22 18:09:39 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								    < / td > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    < td > 
							 
						 
					
						
							
								
									
										
										
										
											2020-09-21 16:15:18 -07:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								      < div > 11< / div > 
							 
						 
					
						
							
								
									
										
										
										
											2017-02-22 18:09:39 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								    < / td > 
							 
						 
					
						
							
								
									
										
										
										
											2018-01-30 12:56:20 -08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								  < / tr > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								 < tr > 
							 
						 
					
						
							
								
									
										
										
										
											2017-02-22 18:09:39 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								    < td > 
							 
						 
					
						
							
								
									
										
										
										
											2018-01-30 12:56:20 -08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								      Safari
							 
						 
					
						
							
								
									
										
										
										
											2017-02-22 18:09:39 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								    < / td > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    < td > 
							 
						 
					
						
							
								
									
										
										
										
											2018-01-30 12:56:20 -08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								      2 most recent major versions
							 
						 
					
						
							
								
									
										
										
										
											2017-02-22 18:09:39 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								    < / td > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								  < / tr > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								  < tr > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    < td > 
							 
						 
					
						
							
								
									
										
										
										
											2018-01-30 12:56:20 -08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								      iOS
							 
						 
					
						
							
								
									
										
										
										
											2017-02-22 18:09:39 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								    < / td > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    < td > 
							 
						 
					
						
							
								
									
										
										
										
											2018-01-30 12:56:20 -08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								      2 most recent major versions
							 
						 
					
						
							
								
									
										
										
										
											2017-02-22 18:09:39 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								    < / td > 
							 
						 
					
						
							
								
									
										
										
										
											2019-06-18 12:40:25 -07:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								  < / tr > 
							 
						 
					
						
							
								
									
										
										
										
											2018-01-30 12:56:20 -08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								  < tr > 
							 
						 
					
						
							
								
									
										
										
										
											2017-02-22 18:09:39 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								    < td > 
							 
						 
					
						
							
								
									
										
										
										
											2018-01-30 12:56:20 -08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								      Android
							 
						 
					
						
							
								
									
										
										
										
											2017-02-22 18:09:39 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								    < / td > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    < td > 
							 
						 
					
						
							
								
									
										
										
										
											2020-01-25 09:12:11 -08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								      X (10.0), Pie (9.0), Oreo (8.0), Nougat (7.0)
							 
						 
					
						
							
								
									
										
										
										
											2017-02-22 18:09:39 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								    < / td > 
							 
						 
					
						
							
								
									
										
										
										
											2019-06-18 12:40:25 -07:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								  < / tr > 
							 
						 
					
						
							
								
									
										
										
										
											2017-02-22 18:09:39 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								< / table >  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2018-07-19 15:00:08 -07:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								< div  class = "alert is-helpful" >  
						 
					
						
							
								
									
										
										
										
											2017-03-27 16:08:53 +01:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2017-07-26 13:42:38 +03:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								Angular's continuous integration process runs unit tests of the framework on all of these browsers for every pull request,
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								using < a  href = "https://saucelabs.com/" > SauceLabs< / a >  and
							 
						 
					
						
							
								
									
										
										
										
											2017-04-24 20:23:45 +02:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								< a  href = "https://www.browserstack.com" > Browserstack< / a > . 
						 
					
						
							
								
									
										
										
										
											2017-03-27 16:08:53 +01:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2017-04-10 16:51:13 +01:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								< / div >  
						 
					
						
							
								
									
										
										
										
											2017-03-27 16:08:53 +01:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2017-11-02 14:29:59 -07:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								## Polyfills
  
						 
					
						
							
								
									
										
										
										
											2017-04-01 01:57:13 +02:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2017-02-22 18:09:39 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								Angular is built on the latest standards of the web platform.
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								Targeting such a wide range of browsers is challenging because they do not support all features of modern browsers.
							 
						 
					
						
							
								
									
										
										
										
											2017-11-02 14:29:59 -07:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								You compensate by loading polyfill scripts ("polyfills") for the browsers that you must support.
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								The [table below ](#polyfill-libs ) identifies most of the polyfills you might need.
							 
						 
					
						
							
								
									
										
										
										
											2017-02-22 18:09:39 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2017-11-02 14:29:59 -07:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								< div  class = "alert is-important" >  
						 
					
						
							
								
									
										
										
										
											2017-03-27 16:08:53 +01:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2017-11-02 14:29:59 -07:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								The suggested polyfills are the ones that run full Angular applications.
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								You may need additional polyfills to support features not covered by this list.
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								Note that polyfills cannot magically transform an old, slow browser into a modern, fast one.
							 
						 
					
						
							
								
									
										
										
										
											2017-02-22 18:09:39 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2017-11-02 14:29:59 -07:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								< / div >  
						 
					
						
							
								
									
										
										
										
											2017-04-01 01:57:13 +02:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2019-06-18 12:40:25 -07:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								In Angular CLI version 8 and higher, applications are built using *differential loading* , a strategy where the CLI builds two separate bundles as part of your deployed application.
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2019-06-21 01:39:39 +03:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								*  The first bundle contains modern ES2015 syntax, takes advantage of built-in support in modern browsers, ships less polyfills, and results in a smaller bundle size. 
						 
					
						
							
								
									
										
										
										
											2019-06-18 12:40:25 -07:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								*  The second bundle contains code in the old ES5 syntax, along with all necessary polyfills. This results in a larger bundle size, but supports older browsers. 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								This strategy allows you to continue to build your web application to support multiple browsers, but only load the necessary code that the browser needs.
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								For more information about how this works, see [Differential Loading ](guide/deployment#differential-loading ) in the [Deployment guide ](guide/deployment ).
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2019-06-25 11:42:26 -07:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								## Enabling polyfills with CLI projects
  
						 
					
						
							
								
									
										
										
										
											2017-04-01 01:57:13 +02:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2019-06-25 11:42:26 -07:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								The [Angular CLI ](cli ) provides support for polyfills.
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								If you are not using the CLI to create your projects, see [Polyfill instructions for non-CLI users ](#non-cli ).
							 
						 
					
						
							
								
									
										
										
										
											2017-02-22 18:09:39 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2019-06-25 11:42:26 -07:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								When you create a project with the `ng new`  command, a `src/polyfills.ts`  configuration file is created as part of your project folder.
							 
						 
					
						
							
								
									
										
										
										
											2017-11-02 14:29:59 -07:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								This file incorporates the mandatory and many of the optional polyfills as JavaScript `import`  statements.
							 
						 
					
						
							
								
									
										
										
										
											2017-02-22 18:09:39 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2019-06-25 11:42:26 -07:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								*  The npm packages for the [_mandatory_ polyfills ](#polyfill-libs ) (such as `zone.js` ) are installed automatically for you when you create your project with `ng new` , and their corresponding `import`  statements are already enabled in the `src/polyfills.ts`  configuration file. 
						 
					
						
							
								
									
										
										
										
											2017-02-22 18:09:39 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2019-06-25 11:42:26 -07:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								*  If you need an _optional_  polyfill, you must install its npm package, then uncomment or create the corresponding import statement in the `src/polyfills.ts`  configuration file. 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								For example, if you need the optional [web animations polyfill ](http://caniuse.com/#feat=web-animation ), you could install it with `npm` , using the following command (or the `yarn`  equivalent):
							 
						 
					
						
							
								
									
										
										
										
											2017-02-22 18:09:39 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2017-11-02 14:29:59 -07:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								< code-example  language = "sh"  class = "code-shell" >  
						 
					
						
							
								
									
										
										
										
											2019-06-25 11:42:26 -07:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								  # install the optional web animations polyfill
							 
						 
					
						
							
								
									
										
										
										
											2017-11-02 14:29:59 -07:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								  npm install --save web-animations-js
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								< / code-example >  
						 
					
						
							
								
									
										
										
										
											2017-04-01 01:57:13 +02:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2019-06-25 11:42:26 -07:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								You can then add the import statement in the `src/polyfills.ts`  file.
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								For many polyfills, you can simply un-comment the corresponding `import`  statement in the file, as in the following example.
							 
						 
					
						
							
								
									
										
										
										
											2017-04-01 01:57:13 +02:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2018-10-11 13:29:59 +02:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								< code-example  header = "src/polyfills.ts" >  
						 
					
						
							
								
									
										
										
										
											2017-11-02 14:29:59 -07:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								  /**
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								  *  Required to support Web Animations `@angular/platform-browser/animations` .
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								  *  Needed for: All but Chrome, Firefox and Opera. http://caniuse.com/#feat =web-animation
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								  ** /
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								  import 'web-animations-js';  // Run `npm install --save web-animations-js` .
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								< / code-example >  
						 
					
						
							
								
									
										
										
										
											2017-02-22 18:09:39 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2019-06-25 11:42:26 -07:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								If the polyfill you want is not already in `polyfills.ts`  file, add the `import`  statement by hand.
							 
						 
					
						
							
								
									
										
										
										
											2017-11-02 14:29:59 -07:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2017-04-01 01:57:13 +02:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2017-11-02 14:29:59 -07:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								{@a  polyfill-libs}
							 
						 
					
						
							
								
									
										
										
										
											2017-04-01 01:57:13 +02:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2017-11-02 14:29:59 -07:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								### Mandatory polyfills
  
						 
					
						
							
								
									
										
										
										
											2017-02-22 18:09:39 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								These are the polyfills required to run an Angular application on each supported browser:
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								< table >  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								  < tr  style = "vertical-align: top" > 
							 
						 
					
						
							
								
									
										
										
										
											2017-07-26 13:42:38 +03:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2017-02-22 18:09:39 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								    < th > 
							 
						 
					
						
							
								
									
										
										
										
											2017-04-18 16:29:55 -07:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								      Browsers (Desktop &  Mobile)
							 
						 
					
						
							
								
									
										
										
										
											2017-02-22 18:09:39 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								    < / th > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    < th > 
							 
						 
					
						
							
								
									
										
										
										
											2017-04-18 16:29:55 -07:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								      Polyfills Required
							 
						 
					
						
							
								
									
										
										
										
											2017-02-22 18:09:39 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								    < / th > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								  < / tr > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								  < tr  style = "vertical-align: top" > 
							 
						 
					
						
							
								
									
										
										
										
											2017-07-26 13:42:38 +03:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2017-02-22 18:09:39 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								    < td > 
							 
						 
					
						
							
								
									
										
										
										
											2019-06-25 11:42:26 -07:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								      Chrome, Firefox, Edge, < br > 
							 
						 
					
						
							
								
									
										
										
										
											2020-09-21 16:15:18 -07:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								      Safari, Android, IE 11
							 
						 
					
						
							
								
									
										
										
										
											2017-02-22 18:09:39 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								    < / td > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    < td > 
							 
						 
					
						
							
								
									
										
										
										
											2018-01-30 12:56:20 -08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2019-06-25 11:42:26 -07:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								      [ES2015 ](guide/browser-support#core-es6 )
							 
						 
					
						
							
								
									
										
										
										
											2018-01-30 12:56:20 -08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2017-02-22 18:09:39 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								    < / td > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								  < / tr > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								< / table >  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2017-04-01 01:57:13 +02:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2017-11-02 14:29:59 -07:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								### Optional browser features to polyfill
  
						 
					
						
							
								
									
										
										
										
											2017-04-01 01:57:13 +02:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2017-02-22 18:09:39 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								Some features of Angular may require additional polyfills.
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								< table >  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								  < tr  style = "vertical-align: top" > 
							 
						 
					
						
							
								
									
										
										
										
											2017-07-26 13:42:38 +03:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2017-02-22 18:09:39 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								    < th > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								      Feature
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    < / th > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    < th > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								      Polyfill
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    < / th > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    < th  style = "width: 50%" > 
							 
						 
					
						
							
								
									
										
										
										
											2017-04-18 16:29:55 -07:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								       Browsers (Desktop &  Mobile)
							 
						 
					
						
							
								
									
										
										
										
											2017-02-22 18:09:39 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								    < / th > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								  < / tr > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2017-11-02 14:29:59 -07:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								  < tr  style = "vertical-align: top" > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    < td > 
							 
						 
					
						
							
								
									
										
										
										
											2018-01-30 12:56:20 -08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2019-06-25 11:42:26 -07:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								      [AnimationBuilder ](api/animations/AnimationBuilder ).
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								      (Standard animation support does not require polyfills.)
							 
						 
					
						
							
								
									
										
										
										
											2018-01-30 12:56:20 -08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2017-02-22 18:09:39 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								    < / td > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    < td > 
							 
						 
					
						
							
								
									
										
										
										
											2018-01-30 12:56:20 -08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2017-03-11 15:36:40 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								      [Web Animations ](guide/browser-support#web-animations )
							 
						 
					
						
							
								
									
										
										
										
											2018-01-30 12:56:20 -08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2017-02-22 18:09:39 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								    < / td > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    < td > 
							 
						 
					
						
							
								
									
										
										
										
											2019-06-25 11:42:26 -07:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								      < p > If AnimationBuilder is used, enables scrubbing
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								      support for IE/Edge and Safari.
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								      (Chrome and Firefox support this natively).< / p > 
							 
						 
					
						
							
								
									
										
										
										
											2017-02-22 18:09:39 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								    < / td > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								  < / tr > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								  < tr  style = "vertical-align: top" > 
							 
						 
					
						
							
								
									
										
										
										
											2017-07-26 13:42:38 +03:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2017-02-22 18:09:39 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								    < td > 
							 
						 
					
						
							
								
									
										
										
										
											2018-01-30 12:56:20 -08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2019-06-25 11:42:26 -07:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								       [NgClass ](api/common/NgClass ) on SVG elements
							 
						 
					
						
							
								
									
										
										
										
											2017-02-22 18:09:39 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								    < / td > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    < td > 
							 
						 
					
						
							
								
									
										
										
										
											2018-01-30 12:56:20 -08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2017-04-01 01:57:13 +02:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								      [classList ](guide/browser-support#classlist )
							 
						 
					
						
							
								
									
										
										
										
											2018-01-30 12:56:20 -08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2017-02-22 18:09:39 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								    < / td > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    < td > 
							 
						 
					
						
							
								
									
										
										
										
											2020-09-21 16:15:18 -07:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								      IE 11
							 
						 
					
						
							
								
									
										
										
										
											2017-02-22 18:09:39 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								    < / td > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								  < / tr > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2018-11-16 09:19:46 -06:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								  < tr  style = "vertical-align: top" > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    < td > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2019-06-25 11:42:26 -07:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								      [Router ](guide/router ) when using
							 
						 
					
						
							
								
									
										
										
										
											2020-02-19 17:43:26 -05:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								      [hash-based routing ](guide/router#location-strategy )
							 
						 
					
						
							
								
									
										
										
										
											2018-11-16 09:19:46 -06:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								    < / td > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    < td > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								      [ES7/array ](guide/browser-support#core-es7-array )
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    < / td > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    < td > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								      IE 11
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    < / td > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								  < / tr > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2017-02-22 18:09:39 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								< / table >  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2017-04-01 01:57:13 +02:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2019-06-25 11:42:26 -07:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								### Suggested polyfills
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								The following polyfills are used to test the framework itself. They are a good starting point for an application.
							 
						 
					
						
							
								
									
										
										
										
											2017-02-22 18:09:39 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2017-03-30 20:04:18 +01:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2017-02-22 18:09:39 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								< table >  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								  < tr > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    < th > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								      Polyfill
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    < / th > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    < th > 
							 
						 
					
						
							
								
									
										
										
										
											2017-03-11 13:44:25 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								      License
							 
						 
					
						
							
								
									
										
										
										
											2017-02-22 18:09:39 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								    < / th > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    < th > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								      Size*
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    < / th > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								  < / tr > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2018-11-16 09:19:46 -06:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								  < tr > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    < td > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								      < a  id = 'core-es7-array'  href = "https://github.com/zloirock/core-js/tree/v2/fn/array" > ES7/array< / a > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    < / td > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    < td > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								      MIT
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    < / td > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    < td > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								      0.1KB
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    < / td > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								  < / tr > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2017-02-22 18:09:39 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								  < tr > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    < td > 
							 
						 
					
						
							
								
									
										
										
										
											2018-01-30 12:56:20 -08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2019-06-25 11:42:26 -07:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								      < a  id = 'core-es6'  href = "https://github.com/zloirock/core-js" > ES2015< / a > 
							 
						 
					
						
							
								
									
										
										
										
											2018-01-30 12:56:20 -08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2017-02-22 18:09:39 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								    < / td > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    < td > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								      MIT
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    < / td > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    < td > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								      27.4KB
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    < / td > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								  < / tr > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								  < tr > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    < td > 
							 
						 
					
						
							
								
									
										
										
										
											2018-01-30 12:56:20 -08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2017-04-24 20:23:45 +02:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								      < a  id = 'classlist'  href = "https://github.com/eligrey/classList.js" > classList< / a > 
							 
						 
					
						
							
								
									
										
										
										
											2018-01-30 12:56:20 -08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2017-02-22 18:09:39 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								    < / td > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    < td > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								      Public domain
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    < / td > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    < td > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								      1KB
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    < / td > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								  < / tr > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								  < tr > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    < td > 
							 
						 
					
						
							
								
									
										
										
										
											2018-01-30 12:56:20 -08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2017-04-24 20:23:45 +02:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								      < a  id = 'intl'  href = "https://github.com/andyearnshaw/Intl.js" > Intl< / a > 
							 
						 
					
						
							
								
									
										
										
										
											2018-01-30 12:56:20 -08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2017-02-22 18:09:39 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								    < / td > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    < td > 
							 
						 
					
						
							
								
									
										
										
										
											2017-03-11 13:44:25 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								      MIT / Unicode license
							 
						 
					
						
							
								
									
										
										
										
											2017-02-22 18:09:39 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								    < / td > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    < td > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								      13.5KB
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    < / td > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								  < / tr > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								  < tr > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    < td > 
							 
						 
					
						
							
								
									
										
										
										
											2018-01-30 12:56:20 -08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2017-04-24 20:23:45 +02:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								       < a  id = 'web-animations'  href = "https://github.com/web-animations/web-animations-js" > Web Animations< / a > 
							 
						 
					
						
							
								
									
										
										
										
											2018-01-30 12:56:20 -08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2017-02-22 18:09:39 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								    < / td > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    < td > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								      Apache
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    < / td > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    < td > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								      14.8KB
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    < / td > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								  < / tr > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								< / table >  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2017-04-01 01:57:13 +02:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2017-07-26 13:42:38 +03:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								\* Figures are for minified and gzipped code,
							 
						 
					
						
							
								
									
										
										
										
											2017-04-24 20:23:45 +02:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								computed with the < a  href = "http://closure-compiler.appspot.com/home" > closure compiler< / a > .
							 
						 
					
						
							
								
									
										
										
										
											2017-11-02 14:29:59 -07:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{@a  non-cli}
							 
						 
					
						
							
								
									
										
										
										
											2019-06-25 11:42:26 -07:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2017-11-02 14:29:59 -07:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								## Polyfills for non-CLI users
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2019-06-25 11:42:26 -07:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								If you are not using the CLI, add your polyfill scripts directly to the host web page (`index.html` ).
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								For example:
							 
						 
					
						
							
								
									
										
										
										
											2017-11-02 14:29:59 -07:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2019-07-20 20:40:17 +03:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								< code-example  header = "src/index.html"  language = "html" >  
						 
					
						
							
								
									
										
										
										
											2017-11-02 14:29:59 -07:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								  < !-- pre-zone polyfills -->
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								  < script src="node_modules/core-js/client/shim.min.js">< /script>
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								  < script src="node_modules/web-animations-js/web-animations.min.js">< /script>
							 
						 
					
						
							
								
									
										
										
										
											2018-01-23 01:43:30 +09:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								  < script>
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    /**
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								     *  you can configure some zone flags which can disable zone interception for some
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								     *  asynchronous activities to improve startup performance - use these options only
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								     *  if you know what you are doing as it could result in hard to trace down bugs..
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								     */
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    // __Zone_disable_requestAnimationFrame = true; // disable patch requestAnimationFrame
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    // __Zone_disable_on_property = true; // disable patch onProperty such as onclick
							 
						 
					
						
							
								
									
										
										
										
											2019-07-17 14:16:22 -07:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								    // __zone_symbol__UNPATCHED_EVENTS = ['scroll', 'mousemove']; // disable patch specified eventNames
							 
						 
					
						
							
								
									
										
										
										
											2017-11-02 14:29:59 -07:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2018-01-27 13:45:03 +09:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								    /*
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								     *  in IE/Edge developer tools, the addEventListener will also be wrapped by zone.js
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								     *  with the following flag, it will bypass `zone.js`  patch for IE/Edge
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								     */
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    // __Zone_enable_cross_context_check = true;
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								  < /script>
							 
						 
					
						
							
								
									
										
										
										
											2017-11-02 14:29:59 -07:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								  < !-- zone.js required by Angular -->
							 
						 
					
						
							
								
									
										
											 
										
											
												feat(zone.js): upgrade zone.js to angular package format(APF) (#36540)
Close #35157
In the current version of zone.js, zone.js uses it's own package format, and it is not following the rule
of Angualr package format(APF), so it is not easily to be consumed by Angular CLI or other bundle tools.
For example, zone.js npm package has two bundles,
1. zone.js/dist/zone.js, this is a `es5` bundle.
2. zone.js/dist/zone-evergreen.js, this is a `es2015` bundle.
And Angular CLI has to add some hard-coding code to handle this case, ohttps://github.com/angular/angular-cli/blob/5376a8b1392ac7bd252782d8474161ce03a4d1cb/packages/schematics/angular/application/files/src/polyfills.ts.template#L55-L58
This PR upgrade zone.js npm package format to follow APF rule, https://docs.google.com/document/d/1CZC2rcpxffTDfRDs6p1cfbmKNLA6x5O-NtkJglDaBVs/edit#heading=h.k0mh3o8u5hx
The updated points are:
1. in package.json, update all bundle related properties
```
  "main": "./bundles/zone.umd.js",
  "module": "./fesm2015/zone.js",
  "es2015": "./fesm2015/zone.js",
  "fesm2015": "./fesm2015/zone.js",
```
2. re-organize dist folder, for example for `zone.js` bundle, now we have
```
  dist/
      bundles/
             zone.js            // this is the es5 bundle
      fesm2015/
             zone.js            // this is the es2015 bundle (in the old version is `zone-evergreen.js`)
```
3. have several sub-packages.
1. `zone-testing`, provide zone-testing bundles include zone.js and testing libraries
2. `zone-node`, provide zone.js implemention for NodeJS
3. `zone-mix`, provide zone.js patches for both Browser and NodeJS
All those sub-packages will have their own `package.json` and the bundle will reference `bundles(es5)` and `fesm2015(es2015)`.
4. keep backward compatibility, still keep the `zone.js/dist` folder, and all bundles will be redirected to `zone.js/bundles` or `zone.js/fesm2015` folders.
PR Close #36540
											 
										 
										
											2020-05-17 10:53:03 +09:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								  < script src="node_modules/zone.js/bundles/zone.umd.js">< /script>
							 
						 
					
						
							
								
									
										
										
										
											2017-11-02 14:29:59 -07:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								  < !-- application polyfills -->
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								< / code-example >