Update to Angular 6 #1
					 2 changed files with 13 additions and 17 deletions
				
			
		|  | @ -23,7 +23,7 @@ | ||||||
|     "ng": "ng", |     "ng": "ng", | ||||||
|     "start": "ng serve", |     "start": "ng serve", | ||||||
|     "build": "ng build --delete-output-path", |     "build": "ng build --delete-output-path", | ||||||
|     "build-prod": "ng build -prod -e prod --aot --delete-output-path --build-optimizer", |     "build-prod": "ng build --prod --optimization --aot --delete-output-path --build-optimizer", | ||||||
|     "test": "ng test --single-run", |     "test": "ng test --single-run", | ||||||
|     "test-continuous": "ng test", |     "test-continuous": "ng test", | ||||||
|     "lint": "ng lint", |     "lint": "ng lint", | ||||||
|  |  | ||||||
|  | @ -38,12 +38,14 @@ | ||||||
| // import 'classlist.js';  // Run `npm install --save classlist.js`.
 | // import 'classlist.js';  // Run `npm install --save classlist.js`.
 | ||||||
| 
 | 
 | ||||||
| /** IE10 and IE11 requires the following for the Reflect API. */ | /** IE10 and IE11 requires the following for the Reflect API. */ | ||||||
| // import 'core-js/es6/reflect';
 | import 'core-js/es6/reflect'; | ||||||
| 
 |  | ||||||
| 
 |  | ||||||
| /** Evergreen browsers require these. **/ | /** Evergreen browsers require these. **/ | ||||||
| // Used for reflect-metadata in JIT. If you use AOT (and only Angular decorators), you can remove.
 | // Used for reflect-metadata in JIT. If you use AOT (and only Angular decorators), you can remove.
 | ||||||
| import 'core-js/es7/reflect'; | import 'core-js/es7/reflect'; | ||||||
|  | /*************************************************************************************************** | ||||||
|  |  * Zone JS is required by default for Angular itself. | ||||||
|  |  */ | ||||||
|  | import 'zone.js/dist/zone'; // Included with Angular CLI.
 | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
| /** | /** | ||||||
|  | @ -58,22 +60,16 @@ import 'core-js/es7/reflect'; | ||||||
|  * user can disable parts of macroTask/DomEvents patch by setting following flags |  * user can disable parts of macroTask/DomEvents patch by setting following flags | ||||||
|  */ |  */ | ||||||
| 
 | 
 | ||||||
|  // (window as any).__Zone_disable_requestAnimationFrame = true; // disable patch requestAnimationFrame
 | // (window as any).__Zone_disable_requestAnimationFrame = true; // disable patch requestAnimationFrame
 | ||||||
|  // (window as any).__Zone_disable_on_property = true; // disable patch onProperty such as onclick
 | // (window as any).__Zone_disable_on_property = true; // disable patch onProperty such as onclick
 | ||||||
|  // (window as any).__zone_symbol__BLACK_LISTED_EVENTS = ['scroll', 'mousemove']; // disable patch specified eventNames
 | // (window as any).__zone_symbol__BLACK_LISTED_EVENTS = ['scroll', 'mousemove']; // disable patch specified eventNames
 | ||||||
| 
 | 
 | ||||||
|  /* | /* | ||||||
|  * in IE/Edge developer tools, the addEventListener will also be wrapped by zone.js | * 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 | * with the following flag, it will bypass `zone.js` patch for IE/Edge | ||||||
|  */ | */ | ||||||
| // (window as any).__Zone_enable_cross_context_check = true;
 | // (window as any).__Zone_enable_cross_context_check = true;
 | ||||||
| 
 | 
 | ||||||
| /*************************************************************************************************** |  | ||||||
|  * Zone JS is required by default for Angular itself. |  | ||||||
|  */ |  | ||||||
| import 'zone.js/dist/zone';  // Included with Angular CLI.
 |  | ||||||
| 
 |  | ||||||
| 
 |  | ||||||
| 
 | 
 | ||||||
| /*************************************************************************************************** | /*************************************************************************************************** | ||||||
|  * APPLICATION IMPORTS |  * APPLICATION IMPORTS | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue