Skip to content

Commit a4debb5

Browse files
Merge pull request #203 from metareason/patch-1
Docs: Add missing ```html for formatting code block
2 parents bb29427 + 63bc962 commit a4debb5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/mixins.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ makeFindMixin({ service: 'videos', name: 'myVideos' }) = {
156156

157157
It's possible to change the service name on the fly. To do this, pass a function (which becomes a computed property) that returns another string property from the viewModel. Below is an example of how to set that up. The `serviceName` attribute is set to `"videos"`, initially. The `setTimeout` in the `created` method changes the value to `"users"` after three seconds. When the serviceName changes, the users service is queried automatically. The `items` property will then update to be the newly fetched users instead of the video records that it contained before. The `items` option is used to rename the items to something more generic.
158158

159-
```
159+
```html
160160
<template>
161161
<div>
162162
{{items}}

0 commit comments

Comments
 (0)