Explorar o código

Specify that tags with side-effects will not be parsed. (#4525)

Bryce Johnson %!s(int64=9) %!d(string=hai) anos
pai
achega
fd55399ff9
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/compiler/parser/index.js

+ 1 - 1
src/compiler/parser/index.js

@@ -91,7 +91,7 @@ export function parse (
         process.env.NODE_ENV !== 'production' && warn(
         process.env.NODE_ENV !== 'production' && warn(
           'Templates should only be responsible for mapping the state to the ' +
           'Templates should only be responsible for mapping the state to the ' +
           'UI. Avoid placing tags with side-effects in your templates, such as ' +
           'UI. Avoid placing tags with side-effects in your templates, such as ' +
-          `<${tag}>.`
+          `<${tag}>` + ', as they will not be parsed.'
         )
         )
       }
       }