Skip to content
This repository was archived by the owner on Feb 2, 2025. It is now read-only.

ng-click not working in buttons #923

Closed
mrjutsu opened this issue Dec 13, 2016 · 5 comments
Closed

ng-click not working in buttons #923

mrjutsu opened this issue Dec 13, 2016 · 5 comments
Labels

Comments

@mrjutsu
Copy link

mrjutsu commented Dec 13, 2016

  • jquery version: 3.1.1
  • datatables version: 1.10.12
  • angular-datatables version: 0.5.5

I have a table which renders content dynamically, however, I also have buttons that perform edit and delete actions but nothing happens when I click on them. I've seen issues #692, #343 and #454, none have helped me solve this problem.

app.js

admin_users.js (Controller)

admin_users.html
Right now they're anchors, but if I change it to buttons the issue remains.

I don't know what else to do, this has been bugging me for days.

If you need something more I'll gladly provide it to my question.

Thank you for your help.

@HeroadZ
Copy link

HeroadZ commented Dec 19, 2016

I get the same problem, even ng-click="alert(1)" not working!!!

@HeroadZ
Copy link

HeroadZ commented Dec 19, 2016

see #305
@durhaya his solution works for me, but I'm not sure whether it has a performance problem.

@marcokorb you provide a solution in #552, but it's not working for me.

@brianmyler I don't understand your solution. I add a class all to action column, but it's not working. You say we should make the action column not responsive, but how?

@brianmyler
Copy link

@HeroadZ, Use the following if you want a button to always show and not collapse into the subtable
<th class="all"></th>
See https://datatables.net/extensions/responsive/classes for more

@HeroadZ
Copy link

HeroadZ commented Dec 20, 2016

@brianmyler thanks for the solution. My buttons always show, but ng-click attribute not working, maybe I should find some other answers.

@l-lin
Copy link
Owner

l-lin commented Dec 27, 2016

Please see this example.

@l-lin l-lin added the question label Dec 27, 2016
@l-lin l-lin closed this as completed Nov 25, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

4 participants