• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Knute Snortum
  • Bear Bibeault
Saloon Keepers:
  • Ron McLeod
  • Tim Moores
  • Stephan van Hulst
  • Piet Souris
  • Ganesh Patekar
Bartenders:
  • Frits Walraven
  • Carey Brown
  • Tim Holloway

ANGULAR - md-menu-item inside <td> not working

 
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I have menus which is listed in Table row using ng-repeat (angular).

There are ng-click functions inside the md-menu-item. that functions are not called by them..


Need to know what is the issue.

and also will it work or not.
 
Saloon Keeper
Posts: 10310
217
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can you show the relevant part of your template?
 
Manju R Sankar
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
 
Manju R Sankar
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Manju R Sankar wrote:

 
Stephan van Hulst
Saloon Keeper
Posts: 10310
217
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Are you sure you want a <div> and not an <md-menu-item>?

I also think your ng-click should read showAddress()
 
Manju R Sankar
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
yeah.. tried with md-menu-item also.. but not working....

if the method is outside md-menu, then it is working...
 
Manju R Sankar
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Found out the reason..

If there is sticky-table-header in table , md-menu-item not working.

Can't find the FIX.


 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!