Coding task · Angular course · Module 12: Security and Performance
Practice: @defer
A deferred block loads a component lazily when its trigger fires (on viewport, on hover, on interaction, on timer). Before the trigger fires Angular shows the block with stand-in content, and while the code is being fetched the @loading block. The on viewport trigger without a target element watches exactly that stand-in content, so that block is mandatory here.
Task
Complete the template with deferred loading of a heavy component.