From 71222fdb1d04c5d96714d767cae7b2004edd8528 Mon Sep 17 00:00:00 2001 From: Bruno Lesieur Date: Sat, 20 May 2017 10:32:05 +0200 Subject: [PATCH] Add some tick for consistency Signed-off-by: Bruno Lesieur --- en/data.md | 6 +++--- en/structure.md | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/en/data.md b/en/data.md index e7b4cf0c..8999e681 100644 --- a/en/data.md +++ b/en/data.md @@ -28,7 +28,7 @@ export function createStore () { }, actions: { fetchItem ({ commit }, id) { - // return the Promise via store.dispatch() so that we know + // return the Promise via `store.dispatch()` so that we know // when the data has been fetched return fetchItem(id).then(item => { commit('setItem', { id, item }) @@ -125,7 +125,7 @@ export default context => { reject({ code: 404 }) } - // call asyncData() on all matched route components + // call `asyncData()` on all matched route components Promise.all(matchedComponents.map(Component => { if (Component.asyncData) { return Component.asyncData({ @@ -178,7 +178,7 @@ On the client, there are two different approaches for handling data fetching: router.onReady(() => { // Add router hook for handling asyncData. // Doing it after initial route is resolved so that we don't double-fetch - // the data that we already have. Using router.beforeResolve() so that all + // the data that we already have. Using `router.beforeResolve()` so that all // async components are resolved. router.beforeResolve((to, from, next) => { const matched = router.getMatchedComponents(to) diff --git a/en/structure.md b/en/structure.md index 930240fb..20532ae1 100644 --- a/en/structure.md +++ b/en/structure.md @@ -105,7 +105,7 @@ import { createApp } from './app' const { app } = createApp() -// this assumes App.vue template root element has id="app" +// this assumes App.vue template root element has `id="app"` app.$mount('#app') ```