Angular2 Final Release – “Error: Angular requires Zone.js prolyfill”

This can happen if the order of scripts is incorrect. <!– ERROR: Angular requires Zone.js polyfill –> <script src=”https://stackoverflow.com/questions/39592949/main.js”></script> <script src=”https://stackoverflow.com/questions/39592949/runtime.js”></script> <script src=”polyfills.js”></script> Correct order: <!– Success –> <script src=”https://stackoverflow.com/questions/39592949/runtime.js”></script> <script src=”polyfills.js”></script> <script src=”https://stackoverflow.com/questions/39592949/main.js”></script>

Navigation triggered outside Angular zone, did you forget to call ‘ngZone.run()’?

Usually this happens when you are wrapping angular calls inside some external js callback, from external JavaScript not related to angular code. Example app.component.ts: callMyCustomJsLibrary() { googleSdk.getLocations(location => this.getEmployees()); } getEmployees(): void { this.employeeService.getEmployees().subscribe(e => { this.employees = e; }); } In this case you will have to include the call into the NgZone, example: … Read more