Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Content not updated on component class update #10

Open
Eliot-Ness opened this issue Oct 22, 2020 · 1 comment
Open

Content not updated on component class update #10

Eliot-Ness opened this issue Oct 22, 2020 · 1 comment

Comments

@Eliot-Ness
Copy link

Hi,

I did use your element for a program I am doing.
Sadly, when updating the [componentclass] input, the content is not updated.
Am I doing something wrong while updating?

<cng-html-compiler #elementContent [template]="element.html" [componentClass]="componentClass"> </cng-html-compiler>

if (elementOption.templateValue) { this.componentClass[elementOption.option.name] = elementOption.templateValue; }

@Eliot-Ness
Copy link
Author

Eliot-Ness commented Oct 22, 2020

Made some tests like this :
@ViewChild(CngHtmlCompilerComponent, {static: true}) elementContent: CngHtmlCompilerComponent;

and then
console.log(this.elementContent.componentClass)

The value have changed, but it is not updated on the displayed content

Could it be an issue with the ngModelChanges() function?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant