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

前端 未结 10 1262
死守一世寂寞
死守一世寂寞 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:30

    My answer might be late for this post. It can be achieved through inline css within anchor tag only.

    click-label

    Considering isDisabled is a property in component which can be true or false.

    Plunker for it: https://embed.plnkr.co/TOh8LM/

提交回复
热议问题