Skip to content

Add some tick for consistency #28

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 22, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions en/data.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 })
Expand Down Expand Up @@ -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({
Expand Down Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion en/structure.md
Original file line number Diff line number Diff line change
Expand Up @@ -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')
```

Expand Down