How to get the linker selected along with the label in gojs

I am unable to read your code – please format it nicely and surround the code with lines of triple backquote. Code Formatting

The basic answer to your question is at GoJS Selection -- Northwoods Software