Skip to content

Commit 18f1b37

Browse files
Update template-syntax.md (#2862)
Add style attribute in Dynamically Binding Multiple Attributes
1 parent c743171 commit 18f1b37

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/guide/essentials/template-syntax.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,8 @@ If you have a JavaScript object representing multiple attributes that looks like
9999
```js
100100
const objectOfAttrs = {
101101
id: 'container',
102-
class: 'wrapper'
102+
class: 'wrapper',
103+
style: 'background-color:green'
103104
}
104105
```
105106

0 commit comments

Comments
 (0)