We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cdbbbda commit 5228456Copy full SHA for 5228456
README.md
@@ -178,10 +178,16 @@ new Vue({
178
},
179
asyncComputed: {
180
blogPostContent: {
181
+ // The `get` function is the same as the function you would
182
+ // pass directly as the value to `blogPostContent` if you
183
+ // didn't need to specify a default value.
184
get () {
185
return Vue.http.get('/post/' + this.postId)
186
.then(response => response.data.postContent)
187
188
+ // The computed proporty `blogPostContent` will have
189
+ // the value 'Loading...' until the first time the promise
190
+ // returned from the `get` function resolves.
191
default: 'Loading...'
192
}
193
0 commit comments