Website/app/frontend/controllers/hello_controller.ts

13 lines
379 B
TypeScript
Raw Normal View History

2024-07-27 18:58:39 +00:00
import {Controller} from '@hotwired/stimulus';
export default class extends Controller {
static targets: Array<string> = ['container'];
declare readonly containerTarget: HTMLElement;
// eslint-disable-next-line @typescript-eslint/no-unused-vars
afterLoad(identifier: string, application: HTMLElement): void {
console.log(this.containerTarget);
}
}