template-lint
template-lint copied to clipboard
Warning if the array value is assigned by index
As per aurelia/binding#64 assigning an array value by index does not notify subscribers. It would be nice if a warning could be generated if this encountered.
@ppn2, did You close this issue by accident?
urr nope, says you closed it. :P
What should we warn on?
viewModel: array[0] = 'bar'
view: <div>${array[0]}</div>
both array[0] = 'bar'
, only when a binding to array
is detected in view;
cravet being the first two are relatively straight forward, but the third will need a separate rule; plus it could get ugly trying to track array usage and binding when slots and replacements are involved.