Angular 2 *ngIf statement with multiple values

Maybe an outdated question but I cant get it to work.

I have an *ngIF statement and i want to use multiple conditions like this:

*ngIf="expression && prototype?.valueType === 'Integer' && 'String'"

How do I set this *ngIf with multiple conditions?

1
Leave a Reply

avatar
1 Comment threads
0 Thread replies
0 Followers
 
Most reacted comment
Hottest comment thread
1 Comment authors
Jason Recent comment authors
  Subscribe  
newest oldest most voted
Notify of
Jason
Guest

This usually works fine.

The expression

*ngIf="expression && prototype?.valueType === 'Integer' && 'String'"

seems a bit off.

Perhaps you want something like

*ngIf="expression && (prototype?.valueType === 'Integer' || prototype?.valueType === 'String'")