Explorar o código

Update templating.md (#2547)

Fix typo on closed quote
Francesco Bianco %!s(int64=3) %!d(string=hai) anos
pai
achega
c812f6694d
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      packages/docs/src/en/essentials/templating.md

+ 1 - 1
packages/docs/src/en/essentials/templating.md

@@ -303,7 +303,7 @@ Here is an example of a dynamically bound `class` attribute:
 As a shortcut, you can leave out the `x-bind` and use the shorthand `:` syntax directly:
 
 ```alpine
-<button ... :class="red ? 'bg-red' : ''>"
+<button ... :class="red ? 'bg-red' : ''">
 ```
 
 Toggling classes on and off based on data inside Alpine is a common need. Here's an example of toggling a class using Alpine's `class` binding object syntax: (Note: this syntax is only available for `class` attributes)