Open nriesco opened 6 years ago
@nriesco can you be more specific ? i don't understand what kind of warning you want here exactly on what exact condition.
that code is wrong:
<can-import from="~/apps/orders/seller-drafts/index" myVar:bind="selectedValue" />
you should use something like this:
<can-import from="~/apps/orders/seller-drafts/index" />
<seller-drafts myVar:bind="selectedValue" />
But it is hard to see by a human. It would be great that a warning/error was triggered when writing code like this.
@nriesco your right setting var on import is not possible only on instancing via the tag
It is not the first time, it has happened to me every once in a while, I feel dumb about it but it would be great to have a warning when setting bindings on
<can-import>
tags such as:I just couldn't figure out what was wrong for a while and I guess a warning could be easily generated, especially considering the amount of current warnings similar to those when using attributes on almost every element.
Thanks