diff --git a/adev/src/content/guide/components/inputs.md b/adev/src/content/guide/components/inputs.md index 3f1df7bd438..73651d75738 100644 --- a/adev/src/content/guide/components/inputs.md +++ b/adev/src/content/guide/components/inputs.md @@ -10,7 +10,7 @@ When you use a component, you commonly want to pass some data to it. A component ```ts {highlight:[5]} import {Component, input} from '@angular/core'; -@Component({/_..._/}) +@Component({/*...*/}) export class CustomSlider { // Declare an input named 'value' with a default value of zero. value = input(0); @@ -60,7 +60,7 @@ The `input` function returns an `InputSignal`. You can read the value by calling ```ts {highlight:[5]} import {Component, input, computed} from '@angular/core'; -@Component({/_..._/}) +@Component({/*...*/}) export class CustomSlider { // Declare an input named 'value' with a default value of zero. value = input(0); @@ -146,7 +146,7 @@ Angular includes two built-in transform functions for the two most common scenar ```ts import {Component, input, booleanAttribute, numberAttribute} from '@angular/core'; -@Component({/_..._/}) +@Component({/*...*/}) export class CustomSlider { disabled = input(false, {transform: booleanAttribute}); value = input(0, {transform: numberAttribute}); @@ -220,7 +220,7 @@ See [Two-way binding](guide/templates/two-way-binding) for more details on two-w You can bind a plain JavaScript property to a model input. -```ts +```angular-ts @Component({ /* ... */ // `value` is a model input. diff --git a/packages/router/src/directives/router_outlet.ts b/packages/router/src/directives/router_outlet.ts index ef855bb8906..be5c99e9fc9 100644 --- a/packages/router/src/directives/router_outlet.ts +++ b/packages/router/src/directives/router_outlet.ts @@ -199,6 +199,7 @@ export interface RouterOutletContract { * * @see {@link RouterLink} * @see {@link Route} + * @see [Show routes with outlets](guide/routing/show-routes-with-outlets) * @ngModule RouterModule * * @publicApi diff --git a/packages/router/src/router_preloader.ts b/packages/router/src/router_preloader.ts index d301b015a57..f5fc969c6f3 100644 --- a/packages/router/src/router_preloader.ts +++ b/packages/router/src/router_preloader.ts @@ -20,6 +20,7 @@ import {RouterConfigLoader} from './router_config_loader'; * * Provides a preloading strategy. * + * @see [Preloading strategy](guide/routing/customizing-route-behavior#preloading-strategy) * @publicApi */ export abstract class PreloadingStrategy { @@ -35,6 +36,20 @@ export abstract class PreloadingStrategy { * RouterModule.forRoot(ROUTES, {preloadingStrategy: PreloadAllModules}) * ``` * + * ```ts + * export const appConfig: ApplicationConfig = { + * providers: [ + * provideRouter( + * routes, + * withPreloading(PreloadAllModules) + * ) + * ] + * }; + * ``` + * + * + * @see [Preloading strategy](guide/routing/customizing-route-behavior#preloading-strategy) + * * @publicApi */ @Injectable({providedIn: 'root'}) @@ -51,6 +66,8 @@ export class PreloadAllModules implements PreloadingStrategy { * * This strategy is enabled by default. * + * @see [Preloading strategy](guide/routing/customizing-route-behavior#preloading-strategy) + * * @publicApi */ @Injectable({providedIn: 'root'}) diff --git a/packages/router/src/url_handling_strategy.ts b/packages/router/src/url_handling_strategy.ts index c7300cf7004..1c1c4f5104b 100644 --- a/packages/router/src/url_handling_strategy.ts +++ b/packages/router/src/url_handling_strategy.ts @@ -15,6 +15,8 @@ import {UrlTree} from './url_tree'; * * Provides a way to migrate AngularJS applications to Angular. * + * @see [URL handling strategy](guide/routing/customizing-route-behavior#built-in-preloading-strategies) + * * @publicApi */ @Injectable({providedIn: 'root', useFactory: () => inject(DefaultUrlHandlingStrategy)})