Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion adev/src/content/guide/components/outputs.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ TIP: This guide assumes you've already read the [Essentials Guide](essentials).

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

```ts {highlight:[3]}
```ts {highlight:[5]}
@Component({
/*...*/
})
Expand Down
2 changes: 1 addition & 1 deletion adev/src/content/guide/elements.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ The `createCustomElement()` function converts a component into a class that can
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:

```html
<my-popup message="Use Angular!"></my-popup>
<my-popup message="Use Angular!" />
```

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