1.0.3
New
-
v-bind
now support accepting an object without arguments, which would allow dynamic binding of multiple attributes:<div v-bind="{ id: someProp, 'other-attr': otherProp }"></div>
Note when using this syntax to bind
class
andstyle
, only plain string values would work. -
limitBy
filter:Limit the array to the first N items, as specified by the argument.
<!-- only display first 10 items --> <div v-for="item in items | limitBy 10"></div>
Fixed
- #1479
filterBy
should no longer return duplicate objects when using multiple search keys. - User-defined component names should no longer be overwritten by option key names.
- Fix edge case for
v-for="(key, val) in obj"
syntax where the key could be falsy. (@vprimachenko) - #1639 Fix
title
as prop edge case in IE10/11 (@fergaldoyle)