Skip to content

cant bind web components attributes to angular functions #22

@oskarerikssoncab

Description

@oskarerikssoncab

I am using the Tinymce web component in my Angular 11 project and can't bind the event attributes to functions in my controller.

The attributes for styling the editor works.

If I use [attr.on-change]="someMethod()" the method gets invoked in some kind of forever loop and runs all the time even if the event are not suppose to be triggered. (see image below)
image

If I use [attr.on-change]="someMethod" (without invoking the function) i get this error (see image below)
image

And if i remove the on as the error message says, nothing happens. How do i use this web component in angular?
Thx

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions