2
0
Эх сурвалжийг харах

improve attr interpolation warning

Evan You 9 жил өмнө
parent
commit
7c9575bffe

+ 2 - 1
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">.'
           )
           )
         }
         }
       }
       }