Skip to content

Commit e255599

Browse files
authored
Clarify example by removing Vue.util.extend (#791)
1 parent 1a92dc5 commit e255599

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

examples/auth-flow/app.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,4 +36,10 @@ const router = new VueRouter({
3636
]
3737
})
3838

39-
new Vue(Vue.util.extend({ router }, App)).$mount('#app')
39+
/* eslint-disable no-new */
40+
new Vue({
41+
el: '#app',
42+
router,
43+
// replace the content of <div id="app"></div> with App
44+
render: h => h(App)
45+
})

0 commit comments

Comments
 (0)