ms.substore

If you have multiple substores, this object contains the details of the current substore. You can use this object in theme widgets, Site pages or in startup widgets to execute logic specific to substores.


Attributes

An attribute is used withsyntax ms-data like: 'ms-data-product', 'ms-data-pagesize', 'ms-data-uniqueId,' 'ms-data-category', 'ms-data-entity', and many more.

Value Description
name Name of the substore
alias Alias of the substore

Examples

Add content specific to substore in site pages

<div ng-if="ms.substore.alias == 'china'">
    Privacy Policy for China
</div>

<div ng-if="ms.substore.alias == 'india'">
    Privacy Policy for India
</div>