Loading topic
@defer block moves part of a template out of that initial download.3 min readimports array, Angular's @if and @for control flow, and what a JavaScript bundle is. You should also have built an Angular app with the CLI at least once.2 min readimports array and that you have written a basic @defer block. It covers which dependencies Angular can move into a lazy chunk, and what silently stops it from doing so.3 min readimports array, and basic template control flow. You should also have written a first @defer block. A deferred block has a lifecycle, and Angular lets you declare what the user sees at each stage.3 min read@placeholder and @loading. It assumes you can write a basic @defer block and know what the @placeholder, @loading and @error sub-blocks do. It also assumes you know how standalone components appear in the imports array.3 min readimports array, and basic template syntax. It also assumes you have written a first @defer block. Here you will learn what a trigger is, which kinds exist, and how triggers combine.3 min readon idle, on immediate and on timer. It assumes you can write a standalone component, you know what the imports array does, and you have seen a basic @defer block. It also assumes you know that @placeholder3 min read@defer blocks and @placeholder work, and that you can read standalone component imports. The three triggers here wait for the user, either by scrolling, clicking or pointing. The deferred chunk does not download until one of those things happens.2 min read@if and signals in a template, and have already written a basic @defer block with a @placeholder.2 min readimports array, and the basic @defer block with its triggers. It covers how to download a deferred chunk before the block renders.3 min read@defer syntax with @placeholder, @loading and @error, and the common triggers. It covers two decisions: how to keep the page from jumping when deferred content arrives, and which parts of a template are worth deferring.3 min read@defer block with its @placeholder, @loading and @error sub-blocks, and have used TestBed for component tests. You will learn how to drive a deferred block through its states in a unit test.2 min read@defer triggers and the @placeholder block work. It also assumes your app already uses Angular SSR (server-side rendering) with hydration. Hydration is the step where the browser reuses the server-rendered HTML instead of rebuilding it.3 min read