Skip to content

Commit

Permalink
fix: enable controller on page root element
Browse files Browse the repository at this point in the history
  • Loading branch information
npenin committed Sep 10, 2024
1 parent 1ddd0fe commit 06e8014
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/client/src/controlsv2/page.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,9 @@ export function pageOutlet<TScope extends IScope<object>>(options: { template: s
inj.register('param', param);
return inj.injectNewWithName(options.inject || [], target)();
}
return new target();
const result = new target();
element['controller'] = result;
return result;
}
} as OutletDefinition<TScope>;
}
Expand Down

0 comments on commit 06e8014

Please sign in to comment.