File tree Expand file tree Collapse file tree 2 files changed +9
-3
lines changed
test/unit/specs/directives/for Expand file tree Collapse file tree 2 files changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -184,9 +184,15 @@ Directive.prototype._checkStatement = function () {
184184
185185Directive . prototype . param = function ( name ) {
186186 var param = this . el . getAttribute ( name )
187- if ( param !== null ) {
187+ if ( param != null ) {
188188 this . el . removeAttribute ( name )
189189 param = ( this . _scope || this . vm ) . $interpolate ( param )
190+ } else {
191+ param = this . el . getAttribute ( 'bind-' + name )
192+ if ( param != null ) {
193+ this . el . removeAttribute ( 'bind-' + name )
194+ param = ( this . _scope || this . vm ) . $eval ( param )
195+ }
190196 }
191197 return param
192198}
Original file line number Diff line number Diff line change @@ -664,9 +664,9 @@ if (_.inBrowser) {
664664 var vm = new Vue ( {
665665 el : el ,
666666 template :
667- '<div v-for="item in list" track-by="id" v- ref="outer">' +
667+ '<div v-for="item in list" track-by="id" ref="outer">' +
668668 '{{item.msg}}' +
669- '<div v-for="subItem in item.list" track-by="id" v -ref="inner{{ $index}} ">' +
669+ '<div v-for="subItem in item.list" track-by="id" bind -ref="\' inner\' + $index">' +
670670 '{{subItem.msg}}' +
671671 '</div>' +
672672 '</div>' ,
You can’t perform that action at this time.
0 commit comments