mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
docs: correct out-of-range highlight indices in two code blocks
Both indices point past the end of their block, so the intended lines are never highlighted. The reactive forms block renders with no highlight at all, and the first example in output-interop.md highlights nothing while its sibling block is unaffected.
This commit is contained in:
@@ -8,7 +8,7 @@ The `@angular/rxjs-interop` package offers two APIs related to component and dir
|
||||
|
||||
The `outputFromObservable` lets you create a component or directive output that emits based on an RxJS observable:
|
||||
|
||||
```ts {highlight:[11]}
|
||||
```ts {highlight:[9]}
|
||||
import {Directive} from '@angular/core';
|
||||
import {outputFromObservable} from '@angular/core/rxjs-interop';
|
||||
|
||||
|
||||
@@ -110,7 +110,7 @@ handleSubmit() {
|
||||
You have access to the form values, now it is time to handle the submission event and use the `handleSubmit` method.
|
||||
Angular has an event handler for this specific purpose called `ngSubmit`. Update the form element to call the `handleSubmit` method when the form is submitted.
|
||||
|
||||
```angular-html {highlight:[3]}
|
||||
```angular-html {highlight:[1]}
|
||||
<form [formGroup]="profileForm" (ngSubmit)="handleSubmit()"></form>
|
||||
```
|
||||
|
||||
|
||||
Reference in New Issue
Block a user