I'm curious if it's possible to achieve the following:
export interface CommonInputProp{
id:Number;
value?:String;
displayName?:String;
order?:Number;
viewVal:String=this.value|this.displayName; // This is not supported at the moment
}
Is there any alternative solution available? I'm not planning on implementing this interface, just using it for response mapping and reading values.
The reason behind this, Angular 2 String Interpolation does not offer support for the or and | operators, and the Plain Old JavaScript Objects (POJO) that I am working with are instances of Interfaces.