Access the Name of a Closure Action


Hi Everyone,

I have read this topic: Getting the name of a function provided to an `action` helper But when I apply it to my code (with Ember 3.4.5 LTS)

{{async-button action=(action “exit”) classNames=“button–cancel” }} is an empty string. Whereas I would like to get the string name “exit”.

Right now I have to pass the “exit” in another property

{{async-button action=(action “exit”) buttonName=“exit” classNames=“button–cancel” }}

Please advise!