Skip to content

vue组件通信方式的应该九种 #14

Description

@Latrevion

少了provide inject
以下为原答案
https://github.com/57code/vue-interview/blob/master/public/05-communication/README.md
回答范例:
组件通信方式大体有以下8种:
props
$emit/$on
$children/$parent
$attrs/$listeners
ref
$root
eventbus
vuex

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions