Skip to content

Commit 70b8be9

Browse files
authored
docs(controllers): add controller registration to his host
1 parent 223405e commit 70b8be9

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

packages/lit-dev-content/samples/v3-docs/controllers/names/names-controller.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ export class NamesController {
1111

1212
constructor(host: ReactiveControllerHost) {
1313
this.host = host;
14+
host.addController(this);
1415
this.task = new Task<[Names.Kind], Names.Result>(host,
1516
async ([kind]: [Names.Kind]) => {
1617
if (!kind?.trim()) {

0 commit comments

Comments
 (0)