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

aliasSpecifies 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.
titleIt is title of the link
urlIt is the url to which that link will redirect.
childrenIt 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>