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 |
mdNavHref
string
|
string |
url to transition to when this link is clicked.
Renders as an |
mdNavSref
string
|
string |
Ui-router state to transition to when this link is
clicked. Renders as a |
srefOpts
Object
|
Object |
Ui-router options that are passed to the
|
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 |