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

Expressionproperties change model through observable #2094

Closed
GillesVercammen opened this issue Feb 12, 2020 · 2 comments · Fixed by #2096
Closed

Expressionproperties change model through observable #2094

GillesVercammen opened this issue Feb 12, 2020 · 2 comments · Fixed by #2096
Labels

Comments

@GillesVercammen
Copy link

Hello,

I see in the interface that expressionproperties take either a string, callback or an observable.
when using expressionproperties to change templateOptions i can succesfully provide an observable and it works.
But when i try to change the model through expressionproperties, i can't provide an observable.
Is this intended?

For example:

expressionProperties: {
        'model.text': of("test"),
        'templateOptions.label': of('labelObs'),
}

the 'templateOptions.label' does show the label correctly as labelObs.
The 'model.text' does not show 'test' as value inside the input..

i can only effectively change the model via expressionproperties by providing a callback like so;
'model.text': ( ) => 'test'

so is this the only options to change the model through expressionproperties?

Tnx!

@aitboudad
Copy link
Member

This issue has been fixed and released as part of v5.5.12 release.

Please let us know, in case you are still encountering a similar issue/problem.
Thank you!

@GillesVercammen
Copy link
Author

many thanks for the quick response! This will help us greatly in our project

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

Successfully merging a pull request may close this issue.

2 participants