Skip to content

Instantly share code, notes, and snippets.

@DerZyklop
Last active June 26, 2019 07:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save DerZyklop/79266afcddaa5d4e9a339ad55f6e7ce8 to your computer and use it in GitHub Desktop.
Save DerZyklop/79266afcddaa5d4e9a339ad55f6e7ce8 to your computer and use it in GitHub Desktop.

1:

<div>
  <p-foo [shift]="shift"></p-foo>
  <p-foo [shift]="shift"></p-foo>

  <p-bar [shiftModel]="shiftModel"></p-bar>
</div>

2:

<div>
  <ng-container *pTemplateOutlet="fooTemplate"></ng-container>
  <ng-container *pTemplateOutlet="fooTemplate"></ng-container>

  <ng-container *pTemplateOutlet="barTemplate"></ng-container>
</div>

<ng-template #fooTemplate>
  <p-foo [shift]="shift"></p-foo>
</ng-template>
<ng-template #barTemplate>
  <p-bar [shiftModel]="shiftModel"></p-bar>
</ng-template>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment