First thing you should look at: any errors in console?
My friend, “directly copying” probably won’t work in a lot of cases. You need to understand what you are doing and do that.
export default Controller.extend({
This is case in point. This probably won’t work in this particularly context.
Like I suggested, please look at the example code I shared.
this is more like what you need:
export default {
setupComponent(args, component) {
because it is a connector