model
object to configure its behavior and appearance. It dynamically generates a list of blog categories, with each category represented as a clickable block.model
object should include configuration details used by the component:String
id
attribute in the HTML.String
String
{
"id": "blog-category-list-1",
"cssClass": "custom-blog-category-list",
"header": "Blog Categories"
}
model
and the fetched blog categories.
model
object as a prop, which contains configuration and data for rendering._getBlogCategoryList
to fetch the list of blog categories when the component is mounted. The result is assigned to the blogCategoryList
data property.Vue.component()
or app.component()
to register the component.v-if
, v-for
, :href
, etc.) for dynamic rendering.props
for the model
object.mounted()
lifecycle hook to fetch data when the component is loaded.