groupSelection not working in directive with ng-click

Hi, I wanted to have an angular directive which has my diagram and on click I would like to group selection, but calling groupSelection doesn’t seem to work inside an angular directive link function… I’m calling the function from ng-click, I am certain that the selection is correct (console.log) and that the function is being called…

Sorry… I didn’t correctly set archetypeGroupData