Skip to content

Commit dde6b3b

Browse files
committed
add basic example
1 parent 15865e9 commit dde6b3b

File tree

23 files changed

+88
-7
lines changed

23 files changed

+88
-7
lines changed

β€Žbuild/e2e.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ PORT=8082
44
# serve example
55
./node_modules/.bin/webpack-dev-server \
66
--quiet --hot --history-api-fallback\
7-
--config example/webpack.config.js \
8-
--content-base example \
7+
--config example/advanced/webpack.config.js \
8+
--content-base example/advanced \
99
--host 0.0.0.0 \
1010
--port $PORT &
1111

β€Ždocs/SUMMARY.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
- [Basic Usage](basic.md)
55
- [Nested Routes](nested.md)
66
- [Route Context](route.md)
7+
- [router-view](view.md)
78
- [v-link](link.md)
89
- [Router Options](options.md)
910
- Transition Pipeline

β€Ždocs/view.md

Whitespace-only changes.

β€Žexample/advanced/README.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# Advanced Example
2+
3+
This example uses Webpack to bundle the app, and uses vue-loader to enable single file Vue components.
4+
5+
- `route-config.js` is the main route file. It demonstrates nested routing, redirection and global before hook.
6+
- `components/inbox/index.vue` demonstrates the use of common transition lifecycle hooks.
7+
- `components/inbox/message.vue` demonstrates using the `data` transition hook for loading asynchronous data.
8+
9+
### Running the Example
10+
11+
``` bash
12+
# at repo root
13+
npm install
14+
# serve at localhost:8080
15+
npm run serve
16+
```
File renamed without changes.

0 commit comments

Comments
Β (0)