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'")
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…