angular directive to disable element code example Example: angualr disable div .my-disable{ pointer-events:none; }