Pooya Parsa
e4af41f529
rewrite nuxt.vue with render function
2017-10-07 13:17:31 +03:30
James Homer
2bf02731f2
fix page transitions
2017-09-09 12:19:52 +01:00
Sébastien Chopin
7d370d8126
Move $nuxt into App
2017-08-15 00:58:45 +02:00
Sébastien Chopin
62cd7f5d11
Fix path
2017-08-01 15:34:14 +02:00
Daniel West
37c3d5433d
Improvements by @Atinux
...
https://github.com/nuxt/nuxt.js/pull/1209#issuecomment-319362924
2017-08-01 14:16:23 +01:00
Daniel West
23ebb41353
Improved default key for page with children
...
If a route being navigated to from a layout has children, I think this would be a better default key
2017-07-29 18:10:04 +01:00
Sébastien Chopin
ad85582f5c
Rename routerViewKey to nuxtChildKey
2017-07-09 16:29:14 +02:00
Sébastien Chopin
a963b566c1
Use nuxtChildKey as computed by default
2017-07-09 12:23:56 +02:00
Daniel West
825d0e4c82
Configurable key property for transitions
...
The vue-router component can have a 'key' property which means it's easier to configure transitions between routes with slugs.
With this change in a layout template you can use
```html
<nuxt :routerViewKey="routerViewKey" />
```
And the following for example
```js
computed: {
routerViewKey () {
if (this.$route.name === 'service') {
return this.$route.name
} else {
return this.$route.fullPath
}
}
}
```
This would implement the functionality that @myst729 mentioned here https://github.com/vuejs/vue-router/issues/474 for vue-router - some routes can just switch, but some you may want to transition as though it's a complete new page to an end-user
This is a possible resolution to issue raised here https://github.com/nuxt/nuxt.js/issues/1021
2017-07-03 18:19:29 +01:00
Pooya Parsa
447e85af14
depricated ~ in flavour of @ for aliases
2017-06-29 21:06:22 +04:30
Sebastien Chopin
e1126d799c
Use relative path
2017-06-20 19:12:06 +02:00
Pooya Parsa
766009dbba
Cleaner structure
2017-06-18 12:06:00 +04:30
Pooya Parsa
829ffa634b
refactor structure
2017-06-16 17:12:45 +04:30
Sébastien Chopin
9a2767ac90
Layout on afterEach
2017-02-20 22:11:34 +00:00
Sébastien Chopin
b4f9504942
Update order
2017-02-10 00:47:35 +01:00
Matthew Pietz
f1386c3a5e
Remove extraneous div
...
Vue 2.x allows multiple root elements when only one would be rendered. Using `v-if` with `v-else` ensures that only one component will get rendered.
2017-02-09 00:25:04 -08:00
Sébastien Chopin
f33afa521f
Fix progress bar on different layouts ( #113 )
2017-01-30 11:20:20 +01:00
Sébastien Chopin
b870a7206e
Add layout feature
2016-12-24 01:55:32 +01:00
Sébastien Chopin
2cf68b6019
add nuxt-child and nuxt-link
2016-12-16 17:45:47 +01:00
Chris Fritz
12e6b6cb9c
Use spaces instead of tabs for consistency
...
Since the rest of the file is using spaces, I changed the tabs before `NuxtLoading` to spaces as well.
2016-12-12 18:59:48 -05:00
Sébastien Chopin
509c14a7ac
Add $nuxt.error()
2016-12-04 19:16:47 +01:00
Sébastien Chopin
2400fabceb
Add transition option and package.json next config
2016-11-21 19:53:11 +01:00
Sébastien Chopin
edd0227e74
Add pages/_app.vue possibility + example
2016-11-21 14:15:08 +01:00
Sébastien Chopin
ae9b41f321
Add callback argument (optional) in data
2016-11-19 22:16:26 +01:00