manmon42
manmon42

Reputation: 319

Angular Material Navbar Not Working

So all of my other angular material related items are functioning properly. However, the Nav bar is refusing to load properly. Here's my code.

<md-nav-bar>
<md-nav-item md-nav-href="#/" name="page3">Home</md-nav-item>
<md-nav-item md-nav-href="#/about" name="page3">About</md-nav-item>
</md-nav-bar>

Yet the output is as though it were just plain text. I've tested it on the example codepen for the element and it works properly. I've tropple checked my code and can fuind no obvious issues.

Any and all help is welcome.

Upvotes: 3

Views: 2577

Answers (2)

ajay mishra
ajay mishra

Reputation: 80

use md-tabs instead gives the same effect when used with ui-router...... i tried it for hours and got nothing on md-menu and md-nav-bar both ,,,,,, i think the above solution for including the cdn libraries is good .... but i recommend md-tabs for good results

Upvotes: 0

manmon42
manmon42

Reputation: 319

I found the solution. The issue was that the bower package was an outdated version. Simply including the CDN code fixed the problem.

Upvotes: 4

Related Questions