D
D
Denis Bukreev2020-02-05 11:52:54
C++ / C#
Denis Bukreev, 2020-02-05 11:52:54

How are component imports different in Vue?

I don’t know which topic it is better to attribute this question to, maybe it’s still a webpack?

You can import a component into a component in Vue like this:

import Layout from 'layouts/Layout'
export default {
  components: {
    Layout,
  },
}


And it's possible like this:
export default {
  components: {
    Layout: () => import('layouts/Layout')
  },
}


How will these imports differ?
What are the cons/pros?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
D
ddd329, 2019-05-20
@Anton_repr

TextBox1.Click -= TextBox1_Click;
After MessageBox write

H
h4x0r1337, 2019-05-20
@h4x0r1337

Application
private void TextBox1_Click(object sender, System.EventArgs e)
{
MessageBox.Show("text");
}

S
Sashqa, 2020-02-05
@denisbookreev

The import(module) statement loads a module and returns a promise that results in a module object containing all of its exports.
learn.js

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question