Skip to content

Missing Typings for Event Hooks in HTML Template #40

Closed
@JordanW9232

Description

@JordanW9232

Describe the bug

None of the event hooks have proper typings when used in a HTML template. When using an event hook in html like (onChange)="onMarkdownChange($event)" it is not recognized and will show the following message:

Event onChange is not emitted by any applicable directives nor by angular-markdown-editor element

Although this message is shown, everything still compiles successfully and my function still works as expected, so this is only an issue with typings.

Reproduction

Use an event hook like (onChange)="onMarkdownChange($event)"

Environment Info

Angular 15.2.2
Angular-Markdown-Editor 3.0.2
Typescript 4.9.5
Windows 11

Validations

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions