Browse Source

improve attr interpolation warning

dev
Evan You 8 years ago
parent
commit
7c9575bffe
  1. 3
      src/compiler/parser/index.js

3
src/compiler/parser/index.js

@ -400,7 +400,8 @@ function processAttrs (el) {
warn( warn(
`${name}="${value}": ` + `${name}="${value}": ` +
'Interpolation inside attributes has been deprecated. ' + 'Interpolation inside attributes has been deprecated. ' +
'Use v-bind or the colon shorthand instead.' 'Use v-bind or the colon shorthand instead. For example, ' +
'instead of <div id="{{ val }}">, use <div :id="val">.'
) )
} }
} }

Loading…
Cancel
Save