Skip to content

ControllerMethod

class AControllerMethod

A ControllerMethod is a named, reusable, typed method on a controller, defined in its InterfaceLocal. It factors shared guard or helper logic out of inline code snippets so it can be called from transition guards and from state code. AControllerMethod is the abstract base; the concrete form carries a C-Minus body.

Create Controller-Method

Controller methods are created in the local interface of the controller.

4l2fh1sv

Access to controller-local variables

In the controller method, access to all elements of a controller is possible.

d1li7826

Return

A controller method can define a return value.

eohy6uqu

Inheritance

Methods of a base controller can be overwritten. Overwritten methods are subsequently no longer visible in the derived controller, but can be called in the overwriting method using a SUPER object.

nxan2q0c

Controller methods as guard or as function in states

Controller methods can be used both as a function in states and as a guard.

ey4p5wva