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
10 changes: 5 additions & 5 deletions adev/src/content/guide/components/content-projection.md
Original file line number Diff line number Diff line change
Expand Up @@ -105,9 +105,9 @@ export class CardBody {}
selector: 'custom-card',
template: `
<div class="card-shadow">
<ng-content select="card-title"></ng-content>
<ng-content select="card-title" />
<div class="card-divider"></div>
<ng-content select="card-body"></ng-content>
<ng-content select="card-body" />
</div>
`,
})
Expand Down Expand Up @@ -150,10 +150,10 @@ did not match a `select` attribute:
```angular-html
<!-- Component template -->
<div class="card-shadow">
<ng-content select="card-title"></ng-content>
<ng-content select="card-title" />
<div class="card-divider"></div>
<!-- capture anything except "card-title" -->
<ng-content></ng-content>
<ng-content />
</div>
```

Expand Down Expand Up @@ -222,7 +222,7 @@ placeholder, Angular compares against the `ngProjectAs` value instead of the ele
```angular-html
<!-- Component template -->
<div class="card-shadow">
<ng-content select="card-title"></ng-content>
<ng-content select="card-title" />
<div class="card-divider"></div>
<ng-content />
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ The `hostSelector` property identifies elements in the DOM that match this harne
template: `
<button (click)="toggle()">{{ triggerText() }}</button>
@if (isOpen()) {
<div class="my-popup-content"><ng-content></ng-content></div>
<div class="my-popup-content"><ng-content /></div>
}
`,
})
Expand Down
Loading