Created
October 24, 2017 07:04
-
-
Save jesperlandberg/d630ef84070f4a7ba8eac9992c9dd8e6 to your computer and use it in GitHub Desktop.
Dynamic route
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export default { | |
async asyncData ({ params, error, payload }) { | |
if (payload) return { content: payload } | |
else return { | |
content: 'something else' | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment