Skip to content

Commit

Permalink
docs: enhance spacings in content projection section examples (#43241)
Browse files Browse the repository at this point in the history
PR Close #43241
  • Loading branch information
Enea Jahollari authored and atscott committed Sep 2, 2021
1 parent 5af9524 commit 4e4a198
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 17 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<!-- #docregion ngif -->
<div *ngIf="expanded" [id]="contentId">
<!-- #docregion ng-container -->
<ng-container [ngTemplateOutlet]="content.templateRef"> </ng-container>
<ng-container [ngTemplateOutlet]="content.templateRef"></ng-container>
<!-- #enddocregion ng-container-->
</div>
<!-- #enddocregion ngif -->
<!-- #enddocregion ngif -->
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ import { Component } from '@angular/core';
@Component({
selector: 'app-zippy-basic',
template: `
<h2>Single-slot content projection</h2>
<ng-content></ng-content>
`
<h2>Single-slot content projection</h2>
<ng-content></ng-content>
`
})
export class ZippyBasicComponent {}
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,13 @@ import { Component } from '@angular/core';
@Component({
selector: 'app-zippy-multislot',
template: `
<h2>Multi-slot content projection</h2>
Default:
<ng-content></ng-content>
Question:
<ng-content select="[question]"></ng-content>
`
<h2>Multi-slot content projection</h2>
Default:
<ng-content></ng-content>
Question:
<ng-content select="[question]"></ng-content>
`
})
export class ZippyMultislotComponent {}
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,13 @@ import { Component } from '@angular/core';
@Component({
selector: 'app-zippy-ngprojectas',
template: `
<h2>Content projection with ngProjectAs</h2>
Default:
<ng-content></ng-content>
Question:
<ng-content select="[question]"></ng-content>
`
<h2>Content projection with ngProjectAs</h2>
Default:
<ng-content></ng-content>
Question:
<ng-content select="[question]"></ng-content>
`
})
export class ZippyNgprojectasComponent {}

0 comments on commit 4e4a198

Please sign in to comment.