Skip to content

Instantly share code, notes, and snippets.

@IntegerMan
Created February 6, 2020 06:46
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 IntegerMan/145a39061f56d4034f5cf0f46ca3824d to your computer and use it in GitHub Desktop.
Save IntegerMan/145a39061f56d4034f5cf0f46ca3824d to your computer and use it in GitHub Desktop.
<div [ngSwitch]="Entry.EntryType">
<app-story-text *ngSwitchCase="Entries.StoryNarrative" [Text]="Entry.Text"></app-story-text>
<app-player-command *ngSwitchCase="Entries.PlayerCommand" [Text]="Entry.Text"></app-player-command>
<p *ngSwitchCase="Entries.SystemText" class="text-system">{{Entry.Text}}</p>
<p class="text-warn" *ngSwitchDefault>{{Entry.Text}}</p>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment