diff --git a/adev/src/content/tutorials/learn-angular/steps/1-components-in-angular/README.md b/adev/src/content/tutorials/learn-angular/steps/1-components-in-angular/README.md index e29a796943d..f67cf24b792 100644 --- a/adev/src/content/tutorials/learn-angular/steps/1-components-in-angular/README.md +++ b/adev/src/content/tutorials/learn-angular/steps/1-components-in-angular/README.md @@ -2,9 +2,11 @@ Components are the foundational building blocks for any Angular application. Each component has three parts: -* TypeScript class -* HTML template -* CSS styles +- TypeScript class +- HTML template +- CSS styles + +Note: Learn more about [components in the essentials guide](/essentials/components). In this activity, you'll learn how to update the template and styles of a component. diff --git a/adev/src/content/tutorials/learn-angular/steps/10-deferrable-views/README.md b/adev/src/content/tutorials/learn-angular/steps/10-deferrable-views/README.md index d63b8a5b9ea..fc0a174101a 100644 --- a/adev/src/content/tutorials/learn-angular/steps/10-deferrable-views/README.md +++ b/adev/src/content/tutorials/learn-angular/steps/10-deferrable-views/README.md @@ -4,6 +4,8 @@ Sometimes in app development, you end up with a lot of components that you need Maybe they are below the visible fold or are heavy components that aren't interacted with until later. In that case, we can load some of those resources later with deferrable views. +Note: Learn more about [deferred loading with @defer in the in-depth guide](/guide/templates/defer). + In this activity, you'll learn how to use deferrable views to defer load a section of your component template.
diff --git a/adev/src/content/tutorials/learn-angular/steps/11-optimizing-images/README.md b/adev/src/content/tutorials/learn-angular/steps/11-optimizing-images/README.md index 9e54971f0ce..6c085fe927c 100644 --- a/adev/src/content/tutorials/learn-angular/steps/11-optimizing-images/README.md +++ b/adev/src/content/tutorials/learn-angular/steps/11-optimizing-images/README.md @@ -2,7 +2,11 @@ Images are a big part of many applications, and can be a major contributor to application performance problems, including low [Core Web Vitals](https://web.dev/explore/learn-core-web-vitals) scores. -Image optimization can be a complex topic, but Angular handles most of it for you, with the `NgOptimizedImage` directive. In this activity, you'll learn how to use `NgOptimizedImage` to ensure your images are loaded efficiently. +Image optimization can be a complex topic, but Angular handles most of it for you, with the `NgOptimizedImage` directive. + +Note: Learn more about [image optimization with NgOptimizedImage in the in-depth guide](/guide/image-optimization). + +In this activity, you'll learn how to use `NgOptimizedImage` to ensure your images are loaded efficiently.
@@ -31,8 +35,7 @@ To enable the `NgOptimizedImage` directive, swap out the `src` attribute for `ng import { NgOptimizedImage } from '@angular/common'; @Component({ - template: ` - ... +template: ` ...
  • Static Image: Angular logo @@ -43,7 +46,7 @@ import { NgOptimizedImage } from '@angular/common';
  • ... `, - imports: [NgOptimizedImage], +imports: [NgOptimizedImage], }) @@ -86,6 +89,7 @@ providers: [ ``` Final URL will be 'https://my.base.url/image.png' + ```angular-html ``` diff --git a/adev/src/content/tutorials/learn-angular/steps/12-enable-routing/README.md b/adev/src/content/tutorials/learn-angular/steps/12-enable-routing/README.md index 4464975e2a1..f559032b264 100644 --- a/adev/src/content/tutorials/learn-angular/steps/12-enable-routing/README.md +++ b/adev/src/content/tutorials/learn-angular/steps/12-enable-routing/README.md @@ -2,6 +2,8 @@ For most apps, there comes a point where the app requires more than a single page. When that time inevitably comes, routing becomes a big part of the performance story for users. +Note: Learn more about [routing in the in-depth guide](/guide/routing). + In this activity, you'll learn how to set up and configure your app to use Angular Router.
    @@ -13,7 +15,7 @@ In this activity, you'll learn how to set up and configure your app to use Angul Inside `app.routes.ts`, make the following changes: 1. Import `Routes` from the `@angular/router` package. -1. Export a constant called `routes` of type `Routes`, assign it `[]` as the value. +2. Export a constant called `routes` of type `Routes`, assign it `[]` as the value. ```ts import {Routes} from '@angular/router'; @@ -37,7 +39,7 @@ import {provideRouter} from '@angular/router'; import {routes} from './app.routes'; export const appConfig: ApplicationConfig = { - providers: [provideRouter(routes)], +providers: [provideRouter(routes)], }; @@ -53,16 +55,15 @@ Update the template for `AppComponent` by adding `` import {RouterOutlet} from '@angular/router'; @Component({ - ... - template: ` -