angular-cn/aio/content
JiaLiPassion f9d483e76e feat: add a temp solution to support passive event listeners. (#34503)
Now Angular doesn't support add event listeners as passive very easily.
User needs to use `elem.addEventListener('scroll', listener, {passive: true});`
or implements their own EventManagerPlugin to do that.
Angular may finally support new template syntax to support passive event, for now,
this commit introduces a temp solution to allow user to define the passive event names
in zone.js configurations.

User can define a global varibale like this.

```
(window as any)['__zone_symbol__PASSIVE_EVENTS'] = ['scroll'];
```

to let all `scroll` event listeners passive.

PR Close #34503
2020-02-24 17:30:04 -08:00
..
cli refactor(docs-infra): remove obsolete `format` attribute from code examples (#31674) 2019-07-24 14:38:54 -07:00
cli-src build(docs-infra): make the git ref for cli command docs configurable (#26391) 2018-10-11 12:57:49 -07:00
examples docs: fix routing code to use `navigate` (#35176) 2020-02-24 09:00:03 -08:00
guide feat: add a temp solution to support passive event listeners. (#34503) 2020-02-24 17:30:04 -08:00
images docs: remove old contributors (#34486) 2020-01-14 10:28:24 -08:00
marketing docs: restructure nav for beginner concepts (#34681) 2020-02-04 08:57:31 -08:00
start docs: clarify getting started deployment guide (#35510) 2020-02-20 15:12:28 -08:00
tutorial docs: remove service from region where it was added before it was created (#35354) 2020-02-12 16:46:22 -08:00
file-not-found.md fix(docs-infra): do not create an anchor for the `file-not-found` header (#27250) 2018-12-05 13:26:26 -08:00
license.md build: bump year (#34651) 2020-01-13 07:21:43 -08:00
navigation.json docs: fix nav to match new toh titles (#35126) 2020-02-10 16:12:54 -08:00