A2v10 Platform documentation
UK


Properties and methods of the root object

The root object is expanded with the following additional service properties and methods:


Properties

readonly $ready: boolean

true if no server requests are currently being made. Can be used to disable/enable interface elements when executing server commands.

readonly $template: Template

Reference to the template object (Template).

Methods

$defer(handler:()=>any): void

Executes a (handler) function after the end of the current event loop.