This widget returns the list of categories in the hierarchical format.
categories | Returns array of categories in hierarchical format. Each category has various detail about itself such as name, alias, image and etc.
|
---|
<ms-categories>
<div v-if="categories && categories.length">
<h3 v-for="category in categories">
<a :href="'/browse/'+ category.alias" title="{{category.name}}">
{{category.name}}
</a>
</h3>
</div>
<div v-if="!categories.length">
{{ms.filters.translate('No category found')}}
</div>
</ms-categories>
<div ms-widget="ms.categories">
<div ng-if="categories.length">
<h3 ng-repeat="category in categories">
<a ng-href="/browse/{{category.alias}}" title="{{category.name}}">
{{category.name}}
</a>
</h3>
</div>
<div ng-if="!categories.length">
<p>No category exist!</p>
</div>
</div>