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

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

    consider the following solution

    .disable-anchor-tag { 
      pointer-events: none; 
    }
    

提交回复
热议问题