docs: fix #19989, add zone flags(blacklist/module) in guide (#21701)

PR Close #21701
This commit is contained in:
JiaLi.Passion 2018-01-23 01:43:30 +09:00 committed by Miško Hevery
parent c65634215b
commit e82812b9a9
1 changed files with 10 additions and 1 deletions

View File

@ -616,10 +616,19 @@ If you aren't using the CLI, you should add your polyfill scripts directly to th
<!-- pre-zone polyfills --> <!-- pre-zone polyfills -->
<script src="node_modules/core-js/client/shim.min.js"></script> <script src="node_modules/core-js/client/shim.min.js"></script>
<script src="node_modules/web-animations-js/web-animations.min.js"></script> <script src="node_modules/web-animations-js/web-animations.min.js"></script>
<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
// __zone_symbol__BLACK_LISTED_EVENTS = ['scroll', 'mousemove']; // disable patch specified eventNames
</script>
<!-- zone.js required by Angular --> <!-- zone.js required by Angular -->
<script src="node_modules/zone.js/dist/zone.js"></script> <script src="node_modules/zone.js/dist/zone.js"></script>
<!-- application polyfills --> <!-- application polyfills -->
</code-example> </code-example>