{"action":"created","issue":{"url":"https://api.github.com/repos/vuejs/vue-router/issues/713","repository_url":"https://api.github.com/repos/vuejs/vue-router","labels_url":"https://api.github.com/repos/vuejs/vue-router/issues/713/labels{/name}","comments_url":"https://api.github.com/repos/vuejs/vue-router/issues/713/comments","events_url":"https://api.github.com/repos/vuejs/vue-router/issues/713/events","html_url":"https://github.com/vuejs/vue-router/issues/713","id":180506527,"number":713,"title":"Failed to mount component: template or render function not defined. (found in root instance)","user":{"login":"lzxb","id":8424643,"avatar_url":"https://avatars.githubusercontent.com/u/8424643?v=3","gravatar_id":"","url":"https://api.github.com/users/lzxb","html_url":"https://github.com/lzxb","followers_url":"https://api.github.com/users/lzxb/followers","following_url":"https://api.github.com/users/lzxb/following{/other_user}","gists_url":"https://api.github.com/users/lzxb/gists{/gist_id}","starred_url":"https://api.github.com/users/lzxb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lzxb/subscriptions","organizations_url":"https://api.github.com/users/lzxb/orgs","repos_url":"https://api.github.com/users/lzxb/repos","events_url":"https://api.github.com/users/lzxb/events{/privacy}","received_events_url":"https://api.github.com/users/lzxb/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-10-02T10:48:46Z","updated_at":"2016-10-02T11:18:02Z","closed_at":"2016-10-02T11:10:55Z","body":"I write it in this case, but it is wrong.\r\nhttp://router.vuejs.org/en/essentials/getting-started.html\r\n\r\n    \"vue\": \"^2.0.1\",\r\n    \"vue-router\": \"^2.0.0\",\r\n    \"vuex\": \"^2.0.0\"\r\n\r\n\r\n```html\r\n<!DOCTYPE html>\r\n<html lang=\"en\">\r\n<head>\r\n    <meta charset=\"UTF-8\">\r\n    <title>Document</title>\r\n</head>\r\n<body>\r\n<div id=\"app\">\r\n  <h1>Hello App!</h1>\r\n  <p>\r\n    <!-- use router-link component for navigation. -->\r\n    <!-- specify the link by passing the `to` prop. -->\r\n    <!-- <router-link> will be rendered as an `<a>` tag by default -->\r\n    <router-link to=\"/foo\">Go to Foo</router-link>\r\n    <router-link to=\"/bar\">Go to Bar</router-link>\r\n  </p>\r\n  <!-- route outlet -->\r\n  <!-- component matched by the route will render here -->\r\n  <router-view></router-view>\r\n</div>\r\n</body>\r\n</html>\r\n```\r\n\r\n\r\n```javascript\r\nimport Vue from 'vue'\r\nimport VueRouter from 'vue-router'\r\n\r\nVue.use(VueRouter)\r\n// 0. If using a module system, call Vue.use(VueRouter)\r\n\r\n// 1. Define route components.\r\n// These can be imported from other files\r\nconst Foo = { template: '<div>foo</div>' }\r\nconst Bar = { template: '<div>bar</div>' }\r\n\r\n// 2. Define some routes\r\n// Each route should map to a component. The \"component\" can\r\n// either be an actual component constructor created via\r\n// Vue.extend(), or just a component options object.\r\n// We'll talk about nested routes later.\r\nconst routes = [\r\n  { path: '/foo', component: Foo },\r\n  { path: '/bar', component: Bar }\r\n]\r\n\r\n// 3. Create the router instance and pass the `routes` option\r\n// You can pass in additional options here, but let's\r\n// keep it simple for now.\r\nconst router = new VueRouter({\r\n  routes // short for routes: routes\r\n})\r\n\r\n// 4. Create and mount the root instance.\r\n// Make sure to inject the router with the router option to make the\r\n// whole app router-aware.\r\nconst app = new Vue({\r\n  router\r\n}).$mount('#app')\r\n\r\n// Now the app has started!\r\n```\r\n\r\n```\r\nopen url http://localhost:3000/admin/#/bar\r\n```"},"comment":{"url":"https://api.github.com/repos/vuejs/vue-router/issues/comments/250966292","html_url":"https://github.com/vuejs/vue-router/issues/713#issuecomment-250966292","issue_url":"https://api.github.com/repos/vuejs/vue-router/issues/713","id":250966292,"user":{"login":"lzxb","id":8424643,"avatar_url":"https://avatars.githubusercontent.com/u/8424643?v=3","gravatar_id":"","url":"https://api.github.com/users/lzxb","html_url":"https://github.com/lzxb","followers_url":"https://api.github.com/users/lzxb/followers","following_url":"https://api.github.com/users/lzxb/following{/other_user}","gists_url":"https://api.github.com/users/lzxb/gists{/gist_id}","starred_url":"https://api.github.com/users/lzxb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lzxb/subscriptions","organizations_url":"https://api.github.com/users/lzxb/orgs","repos_url":"https://api.github.com/users/lzxb/repos","events_url":"https://api.github.com/users/lzxb/events{/privacy}","received_events_url":"https://api.github.com/users/lzxb/received_events","type":"User","site_admin":false},"created_at":"2016-10-02T11:18:02Z","updated_at":"2016-10-02T11:18:02Z","body":"thank you"}}
{"actor":{"display_login":"lzxb"}}