Directives - md-nav-item

mdNavItem API Documentation

<md-nav-item> describes a page navigation link within the <md-nav-bar> component. It renders an md-button as the actual link.

Exactly one of the mdNavClick, mdNavHref, mdNavSref attributes are required to be specified.

Usage

See <md-nav-bar> for usage.

Attributes

Parameter Type Description
mdNavClick Function= Function=

Function which will be called when the link is clicked to change the page. Renders as an ng-click.

mdNavHref string string

url to transition to when this link is clicked. Renders as an ng-href.

mdNavSref string string

Ui-router state to transition to when this link is clicked. Renders as a ui-sref.

srefOpts Object Object

Ui-router options that are passed to the $state.go() function. See the [Ui-router documentation for details] (https://ui-router.github.io/docs/latest/interfaces/transition.transitionoptions.html).

name string string

The name of this link. Used by the nav bar to know which link is currently selected.

aria-label string string

Adds alternative text for accessibility