1

I have the link with class 'disabled'. I don't want that ember process click on this link.

In jQuery I always write:

$(document).ready(() ->
  $("body").on("click", "*[disabled], .disabled", (e) ->
    e.preventDefault()
    e.stopPropagation()
  )
)

But this not working with ember. How can I do this globally for ember?

Rajaprabhu Aravindasamy
  • 66,513
  • 17
  • 101
  • 130
Arugin
  • 1,931
  • 2
  • 13
  • 17

1 Answers1

0

You can disable it in your template like this:

{{#link-to "some.link" item disabled=methodOrItemProperty}}
  {{item.name}}
{{/link-to}}
Thermech
  • 4,371
  • 2
  • 39
  • 60