Skip to content

Instantly share code, notes, and snippets.

View professorhaseeb's full-sized avatar
🎯
Focused

Haseeb ur Rehman professorhaseeb

🎯
Focused
View GitHub Profile
@professorhaseeb
professorhaseeb / pass-slots.md
Created October 20, 2023 11:09 — forked from loilo/pass-slots.md
Vue: Pass Slots through from Parent to Child Components

Vue: Pass Slots through from Parent to Child Components

The Situation

  • We've got some components A, B and C which provide different slots.
    const A = {
      template: `<div><slot name="a">Default A Content</slot></div>`
    }

const B = {

#!/bin/bash
systemctl stop NetworkManager
systemctl disable NetworkManager
chkconfig NetworkManager off
systemctl list-unit-files | grep NetworkManager
echo -e "\nNM_CONTROLLED=no" >> /etc/sysconfig/network-scripts/ifcfg-eth0
systemctl enable network
systemctl restart network
systemctl start network