Angular2, what is the correct way to disable an anchor element?

前端 未结 10 1249
死守一世寂寞
死守一世寂寞 2020-11-27 17:51

I\'m working on an Angular2 application, and I need to display -- but disable an HTML element. What is the corr

10条回答
  •  温柔的废话
    2020-11-27 18:27

    Just came across this question, and wanted to suggest an alternate approach.

    In the markup the OP provided, there is a click event binding. This makes me think that the elements are being used as "buttons". If that is the case, they could be marked up as

提交回复
热议问题