Helpcenter +918010117117 https://cdn1.storehippo.com/s/573db3149f0d58741f0cc63b/ms.settings/5256837ccc4abf1d39000001/57614ef64256dc6851749879-480x480.png" support@storehippo.com https://www.facebook.com/StoreHippohttps://twitter.com/StoreHippohttps://www.linkedin.com/company/hippoinnovations/https://plus.google.com/+Storehippo/posts
B4,309-10 Spaze iTech Park, Sector 49, Sohna Road, 122001 Gurgaon India

ms.navigation

This widget returns the list of all the navigation links or a single navigation link if the alias for a particular navigation is used.


Attributes

alias Specifies the alias of the navigation.

Variables

navigation
Returns the list of all the navigation links as of no alias is used with ms.navigation.
navigation.links
Returns the list of links available under a particular navigation of which alias attribute is used.
title It is title of the link
url It is the url to which that link will redirect.
children It contains children of that link which are itself an array of links.

Examples

Show header navigation

<ul ms-widget="ms.navigation" ms-data-alias="header">
  <li ng-repeat="link in navigation.links">
    <a href="{{link.url}}">{{link.title}}</a>
  </li>
</ul>