Skip to content

Commit

Permalink
fix: temporary fix escaped expressions
Browse files Browse the repository at this point in the history
Temporary replace vue-html blocks with html on template syntax page.
  • Loading branch information
NataliaTepluhina committed Dec 1, 2023
1 parent 0517a16 commit 95ec9ea
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/guide/essentials/template-syntax.md
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ You can bind them to a single element by using `v-bind` without an argument:

So far we've only been binding to simple property keys in our templates. But Vue actually supports the full power of JavaScript expressions inside all data bindings:

```vue-html
```html
{{ number + 1 }}

{{ ok ? 'YES' : 'NO' }}
Expand All @@ -138,7 +138,7 @@ Each binding can only contain **one single expression**. An expression is a piec

Therefore, the following will **NOT** work:

```vue-html
```html
<!-- this is a statement, not an expression: -->
{{ var a = 1 }}

Expand All @@ -150,7 +150,7 @@ Therefore, the following will **NOT** work:

It is possible to call a component-exposed method inside a binding expression:

```vue-html
```html
<time :title="toTitleDate(date)" :datetime="date">
{{ formatDate(date) }}
</time>
Expand Down

0 comments on commit 95ec9ea

Please sign in to comment.