Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
<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
You can’t perform that action at this time.