All variation for a specific page.
- Source:
Members
(static) common :Object
Expose all JSON data from `commonVariation` file.
Type:
- Object
- Source:
(static) currentRoute :string
Expose route of current page from current webconfig `routes`.
Type:
- string
- Source:
Example
/categories/:category/
(static) currentRouteParameters :Object
Expose all data from `routes[]` object from webconfig.
Type:
- Object
- Source:
(static) filename :string
Same as `NA#variations.filename`.
Type:
- string
- Source:
(static) languageCode :string
Expose the current language code for the page if setted else expose the global if setted.
Type:
- string
- Default Value:
- undefined
- Source:
(static) params :string
Expose list of selector used into page.
Type:
- string
- Source:
Example
If current route is '/example/:selector/'
At http://localhost/example/test/ the value of `NA.variations#params` is
{ "selector": "test" }
(static) pathname :string
Same as `NA#variations.pathname`.
Type:
- string
- Source:
(static) specific :Object
Expose all JSON data from `routes[].variation` file.
Type:
- Object
- Source:
(static) urlBasePath :string
Expose the current URL of page with `NA#webconfig.urlWithoutFileName` and `NA#webconfig.urlRelativeSubPath`.
Type:
- string
- Source:
Example
http://localhost:7777/subpath/
https://www.example.here/
(static) urlBasePathSlice :string
Idem as `NA#variation.urlBasePath` without "/" at the end.
Type:
- string
- Source:
Example
http://localhost:7777/subpath
https://www.example.here
(static) urlPath :string
Expose the current URL of page with `NA#webconfig.urlBasePath` and the current page route.
Type:
- string
- Source:
Example
http://localhost:7777/subpath/example.html (if current route is '/example.html')
https://www.example.here/example/this/ (if current route is '/example/this/')
(static) webconfig :Object
Expose all webconfig values.
Type:
- Object
- Source: