Skip to content

Instantly share code, notes, and snippets.

@DerZyklop DerZyklop/foo.md
Last active Jun 26, 2019

Embed
What would you like to do?

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
You can’t perform that action at this time.