Go back to Examples

Bind HTML attributes

CMS - Intermediate

To bind HTML attributes you can use `v-bind`. For example you can bind the image and imageAlt fields from a post to an img element.

                <img v-bind:src="post.image" v-bind:alt="post.imageAlt" />