Aurelia evaluates template expressions in a safe way and does not allow expressions to access global variables freely. For example, doing
alert()in any expression will not evaluate the
alertfunction on the window object. Though many globals are often used, which will make it awkward if there is not a way to access them directly.
JSONis an example, it's quite commonly used in many places including both application functionalities and debugging.
To reduce boilerplate, Aurelia allows template expression to access to a fixed list of global variables that are usually needed. Those globals are as followings: