<commit_before>---
title: Migration from Vue Router 0.7.x
type: guide
order: 26
---

> Only Vue Router 2 is compatible with Vue 2, so if you're updating Vue, you'll have to update Vue Router as well. That's why we've included details on the migration path here in the main docs. For a complete guide on using the new Vue Router, see the [Vue Router docs](http://router.vuejs.org/en/).

<p class="tip">The list of deprecations below should be relatively complete, but the migration helper is still being updated to catch them.</p>

## Router Initialization

### `router.start` <sup>deprecated</sup>

There is no longer a special API to initialize an app with Vue Router. That means instead of:

``` js
router.start({
  template: '<router-view></router-view>'
}, '#app')
```

You'll just pass a router property to a Vue instance:

``` js
new Vue({
  el: '#app',
  router: router,
  template: '<router-view></router-view>'
})
```

Or, if you're using the runtime-only build of Vue:

``` js
new Vue({
  el: '#app',
  router: router,<commit_msg>remove warning about the migration helper not catching vue-router deprecations yet<commit_after>---
title: Migration from Vue Router 0.7.x
type: guide
order: 26
---

> Only Vue Router 2 is compatible with Vue 2, so if you're updating Vue, you'll have to update Vue Router as well. That's why we've included details on the migration path here in the main docs. For a complete guide on using the new Vue Router, see the [Vue Router docs](http://router.vuejs.org/en/).

## Router Initialization

### `router.start` <sup>deprecated</sup>

There is no longer a special API to initialize an app with Vue Router. That means instead of:

``` js
router.start({
  template: '<router-view></router-view>'
}, '#app')
```

You'll just pass a router property to a Vue instance:

``` js
new Vue({
  el: '#app',
  router: router,
  template: '<router-view></router-view>'
})
```

Or, if you're using the runtime-only build of Vue:

``` js
new Vue({
  el: '#app',
  router: router,
{'fraction_non_alphanumeric': 0.12624750499001997, 'fraction_numerical': 0.005988023952095809, 'mean_word_length': 3.987562189054726, 'pattern_counts': {'":': 0, '<': 17, '<?xml version=': 0, '>': 19, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4492433', 'n_tokens_mistral': 664, 'n_tokens_neox': 625, 'n_words': 278}