Home > Web Front-end > JS Tutorial > body text

How to migrate Vue from 1.0 to 2.0 instance sharing

小云云
Release: 2018-01-09 10:41:01
Original
1347 people have browsed it

When using vue-route to route to a new page, the DOM of the current page will be refreshed, el will be replaced by the newly created vm.$el, and the hook will be called after mounting it to the instance. This article mainly introduces the relevant information on how to migrate Vue from 1.0 to 2.0. Friends who need it can refer to it. I hope it can help everyone.

1.0 uses the ready hook function

2.0 uses the mounted hook function instead

##Related recommendations:

Summary of the instance methods of vue2.0 configuration

Recommended vue2.0 usage, welcome to view

vue2.0 data two-way binding Define the form bootstrap+vue component

The above is the detailed content of How to migrate Vue from 1.0 to 2.0 instance sharing. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template