Vue.component("parent", {
    template:`
        <div>
            <component :is="componentName"></component>
        </div>
    `,
    computed: {
        componentName: () => someCondition ? "component1" : "component2"
    },
});
Vue.component("component1", {
    template:`
        <div>
            <h1>component 1</h1>
        </div>
    `
});
Vue.component("component2", {
    template:`
        <div>
            <h1>component 2</h1>
        </div>
    `,
});а если нет ни пагинации, ни скролла
Новые возможности добавлялись в язык, но старые - никогда НЕ менялись, чтобы не« сломать »уже существующие HTML / JS-страницы с их использованием.
var obj = {
    show () {
        console.log (this);
        function q () {
              "use strict";
              console.log (this); // undefined вместо window
        };
        q();
    }
}var obj = {
  show () {
    console.log (this);
    function q () {
      console.log (this);
    };
    q.call (this)
  }
}var obj = {
  show () {
    console.log (this);
    const q = () => {
      console.log (this);
    };
    q()
  }
}let arrOfPromises = [];article.tags.forEach(t => arrOfPromises.push(Tag.findOneAndUpdate(...)) // никаких async/awaitlet tags = Promise.all(arrOfPromises );let article = new Artice( articleData );let section = await Section.findOneAndUpdate(...)if (section === null) return res.json({ message: 'No sections found' });await article.save();res.status(201).json({
    status: 'OK',
    article
});