-
Notifications
You must be signed in to change notification settings - Fork 26.6k
Closed
Milestone
Description
I'm submitting a...
[ ] Regression (a behavior that used to work and stopped working in a new release)
[x ] Bug report
[ ] Feature request
[ ] Documentation issue or request
[ ] Support request => Please do not submit support request here, instead see https://github.com/angular/angular/blob/master/CONTRIBUTING.md#question
Current behavior
When using Angular Router it's not possible to use new Angular 5 feature ngZone: 'noop' .
In the console we can see: Zone is not defined error.
Router method setUpLocationChangeListener is using Zone.
screenshots:
zone is not defined
Router.setUpLocationChangeListener method implementation
Expected behavior
Angular Router is able to work without Zone.
Minimal reproduction of the problem with instructions
- Just fire angular app with
platformBrowserDynamic()
.bootstrapModule(AppModule, {
ngZone: 'noop'
}); - comment import 'zone.js/dist/zone'; in polyfills
- Try to use angular Router in some easy case.
What is the motivation / use case for changing the behavior?
Environment
Angular version: 5.0.1
Browser:
- [x ] Chrome (desktop) version XX
- [ ] Chrome (Android) version XX
- [ ] Chrome (iOS) version XX
- [ ] Firefox version XX
- [ ] Safari (desktop) version XX
- [ ] Safari (iOS) version XX
- [ ] IE version XX
- [ ] Edge version XX
For Tooling issues:
- Node version: XX
- Platform:
Others:
dkarski, 4FreeD, LukaszZych, yusuke-oba1, maxkoretskyi and 2 more