Skip to content

Lab 5: Zone.js

Christian Liebel edited this page Mar 19, 2018 · 2 revisions

1. Update repository

On your command line, perform the following steps:

$ git reset --hard
$ git pull

2. Lab

The speaker added new components. Take a look at the BoxComponent and see how slow it’s running in the browser. Let’s make it fast: Replace all HostBindings and HostListeners by calls to the Renderer2 using the component’s ElementRef. Make sure to run all calls related to moving the box outside of Angular’s zone. You may refer to this blog article.

Clone this wiki locally