Border of div bound to routerlink directive?

its css outline property, this is very important for accessibility, you can read more at: http://www.outlinenone.com/

if you still want to do it just add

.paddingDiv:focus {
  outline: 0;
}

to your css


Not sure which version of the router your are using but since version 3 you cannot use routerLink on any other elements than a or button.

If you need to use it in a div then use a click event together with Router and navigate.


Yup, the approved answer will remove the outline from a specific selector.

If you want to remove the outline from all [routerLink] across the project then below CSS will more helpful.

 *[ng-reflect-router-link]:focus {
   outline: none;
 }