mirror of
https://github.com/kataras/iris.git
synced 2025-12-19 19:07:06 +00:00
add example for https://github.com/kataras/iris/issues/1653
This commit is contained in:
30
_examples/file-server/spa-vue-router/frontend/index.html
Normal file
30
_examples/file-server/spa-vue-router/frontend/index.html
Normal file
@@ -0,0 +1,30 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>Iris + Vue Router</title>
|
||||
<script src="https://unpkg.com/vue/dist/vue.js"></script>
|
||||
<script src="https://unpkg.com/vue-router/dist/vue-router.js"></script>
|
||||
<link rel="stylesheet" href="/css/page.css">
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<div id="app">
|
||||
<h1>Hello App!</h1>
|
||||
<p>
|
||||
<!-- use router-link component for navigation. -->
|
||||
<!-- specify the link by passing the `to` prop. -->
|
||||
<!-- `<router-link>` will be rendered as an `<a>` tag by default -->
|
||||
<router-link to="/foo">Go to Foo</router-link>
|
||||
<router-link to="/bar">Go to Bar</router-link>
|
||||
</p>
|
||||
<!-- route outlet -->
|
||||
<!-- component matched by the route will render here -->
|
||||
<router-view></router-view>
|
||||
</div>
|
||||
<script src="/js/app.js"></script>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
Reference in New Issue
Block a user