Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

vue2.0 sync弃用的问题 #8

Open
He-Xun opened this issue Oct 20, 2016 · 0 comments
Open

vue2.0 sync弃用的问题 #8

He-Xun opened this issue Oct 20, 2016 · 0 comments

Comments

@He-Xun
Copy link

He-Xun commented Oct 20, 2016

非常感谢作者的vue教程 只是2.0正式版发布了 有些api改动 比如sync这个地方不再支持

官网的那个生命周期的图看懂了 但是实际怎么用有点懵逼

v-bind 的 .once和.sync 修饰符 弃用

Props 现在只能单向传递。为了对父组件产生反向影响,子组件需要显式地传递一个事件而不是依赖于隐式地双向绑定。详见:

  • 自定义组件事件
  • 自定义输入组件 (使用组件事件)
  • 全局状态管理
  • 升级方式

运行 migration helper 工具找到使用 .once 和 .sync 修饰符的实例。

能否针对2.0更改的重要api 写一些例子呢? thx

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant