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

Inconsistent error messages when using multiple bindings #112

Open
tscpp opened this issue Apr 26, 2020 · 0 comments
Open

Inconsistent error messages when using multiple bindings #112

tscpp opened this issue Apr 26, 2020 · 0 comments

Comments

@tscpp
Copy link

tscpp commented Apr 26, 2020

When using multiple bindings in the same data-bind expression, we get different error messages if we have/have not child bindings.

<span data-bind="let: { item: 'bla' }, foreach: ['1', '2']">
	<span data-bind="text: item"></span>
</span>

Vs.

<span data-bind="let: { item: 'bla' }, foreach: ['1', '2']">

</span>

In the first case, we get an error on the text-binding. In the latter case, we get a clear warning that we shouldn't use multiple bindings.

Unfortunately, the first case is likely to be used most of the time.

Example jsfiddle

@tscpp tscpp changed the title Inconsisten error messages when using multiple bindings Inconsistent error messages when using multiple bindings Apr 26, 2020
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