Sateesh K
Sateesh K

Reputation: 1091

AngualrJS Left Navigation Menu Issue

I have the following sample code which provides the sample structure for the Left Nav Menu and the Middle Content section.

Here is the Plunker created for this example.

Plunker URL

When i click on Display Left Nav Menu Icon and select a menu item it updates the content of the view "content" as expected.

How ever as soon as i click on the LEft Nav Menu Icon the content from menu.html appear in the content view . Not sure why it is happening.

Left Nav Icon is in leftnav.html and it's handlers are in leftnav.controller.js why the main controller is getting invoked ??

Could you please let me know.

Thanks.

Upvotes: 0

Views: 149

Answers (1)

tpie
tpie

Reputation: 6221

You have a location in the href of your a tag. Just getting rid of that should give you the correct functionality.

<a href="" class="btn btn-default" id="menu-toggle" ng-click='toggle()'>

Upvotes: 1

Related Questions