Skip to content

Commit 88dfeae

Browse files
committed
docs: fix code snippet formatting and highlight lines
Correct a mismatched line highlight in the documentation examples and convert tags to the preferred self-closing format for consistency.
1 parent d109cc5 commit 88dfeae

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

‎adev/src/content/guide/components/outputs.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ TIP: This guide assumes you've already read the [Essentials Guide](essentials).
44

55
Angular components can define custom events by assigning a property to the `output` function:
66

7-
```ts {highlight:[3]}
7+
```ts {highlight:[5]}
88
@Component({
99
/*...*/
1010
})

‎adev/src/content/guide/elements.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ The `createCustomElement()` function converts a component into a class that can
3939
After you register your configured class with the browser's custom-element registry, use the new element just like a built-in HTML element in content that you add directly into the DOM:
4040

4141
```html
42-
<my-popup message="Use Angular!"></my-popup>
42+
<my-popup message="Use Angular!" />
4343
```
4444

4545
When your custom element is placed on a page, the browser creates an instance of the registered class and adds it to the DOM.

0 commit comments

Comments
 (0)