Skip to content

Commit

Permalink
docs: use correct syntax highlighting tag type (#1029)
Browse files Browse the repository at this point in the history
  • Loading branch information
SerkanSipahi authored Apr 17, 2024
1 parent dd5827d commit 5d1af8e
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions apps/docs-app/docs/experimental/sfc/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -145,20 +145,19 @@ defineMetadata({

Another way to add host metadata is to use the `<template>` tag

```analog
```html
<template class="block articles-toggle"></template>
```

You can also have **Property Binding** and **Event Binding** in the `<template>` tag:

```analog
```html
<script lang="ts">
import { signal } from '@angular/core';
const bg = signal('black');
function handleClick() {
}
function handleClick() {}
</script>

<template [style.backgroundColor]="bg()" (click)="handleClick()"></template>
Expand Down

0 comments on commit 5d1af8e

Please sign in to comment.