I'm using Angular 8 for frontend. I have an expression and object for evaluating. For example expression is "(getSubFoo()!=null && getSubFoo() == 'XYZ')" and object is
export class Foo{
field1: string;
field2:string;
public getSubFoo(): string{
// some implementations
}
}
When i want to run above evaluation, evaluation drops to catch and error is message: "Method getSubFoo does not exist."
name: "NullPointerException".
Hi,
I'm using Angular 8 for frontend. I have an expression and object for evaluating. For example expression is "(getSubFoo()!=null && getSubFoo() == 'XYZ')" and object is export class Foo{ field1: string; field2:string; public getSubFoo(): string{ // some implementations } }
When i want to run above evaluation, evaluation drops to catch and error is message: "Method getSubFoo does not exist." name: "NullPointerException".
Does spel2js provide to evaluate methods?
Best Regards, Burak Mert.