Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 08ca6fa

Browse files
authored
chore: Improve routes "meta" explainer
1 parent 4705011 commit 08ca6fa

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

‎README.md

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,12 +67,17 @@ const routes = [
6767
component: moviesPage,
6868
meta: {
6969
isVertical: true,
70+
// Example actions to dispatch automatically when page is visited
71+
// Remember that you need to implement actions in your Vuex store
7072
store: {
71-
// This Vuex action will be called automatically
73+
// Call action to hide navigation buttons
7274
showNavigationButtons: false,
7375

74-
// This Vuex action will be called automatically in "categories" modules with payload "all"
76+
// Call "showMovies" action in "categories" module with payload "all"
7577
"categories/showMovies": "all",
78+
79+
// Call action without payload
80+
showNavigationButtons: null,
7681
},
7782
},
7883
},

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /