These are chat archives for canjs/canjs
A different question.
On CanJS 5 is there a way to get the controller?
On CanJS 3 I was getting the controller like this:
const controller = domData.get.call(document.querySelector(selector), "controls")
But it seems that it doesn't work anymore
"controls"... I'm not sure what happened there ... I can probably fix that, can you create an issue?
email@example.com a fix for the connect codepen
firstname.lastname@example.org can access the controls with:
import canSymbol from "can-symbol"; element[canSymbol.for("can.controls")] //-> controls