benmarch / spel2js

Parse Spring Expression Language in JavaScript
Other
69 stars 19 forks source link

Method references does not work #13

Open harryburak opened 3 years ago

harryburak commented 3 years ago

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.