Try Install Learn Blog API Packages GitHub


Constants can be added to stores , modules and components.

module Math {
  const PI = 3.141592653589793

Constants can be accessed like variables inside the scope of the entity which defined them and from outside they can be accessed with the following syntax:


The variable name of a constant must be in all-uppercase characters.