Skip to main content

Function: Controller()

Controller(): ClassDecorator

Class decorator that marks a class as a controller within the Aurora framework. Controllers will be scanned and instantiated by the ApplicationFactory, and their decorated event-handler methods will be bound to the platform driver.

Returns

ClassDecorator

Throws

if applied more than once on the same class.