2

Hey I am binding menuIconClick($event) function on li using ng-click directive.But gets bind to child li also. Code like as follow

%div.sideNavBar
  %ul.navBar
    %li.icons-briefcase-static{'ng-click'=>"menuIconClick($event)"} // binding here only
      %ul.subMenu
        %li All sites // but gets call here also
        %li{'ng-repeat'=>"site in sites"}
          {{site.name}}
    %li.icons-users-disabled
  %div.lock.icons-lock-disabled

The template is in HAML. I didn't got why?

Any help appreciated

Swapnil Patil
  • 971
  • 2
  • 18
  • 41
  • @chandu sorry no code fiddle – Swapnil Patil Jun 18 '14 at 06:13