In angular (8), importing a module that has routes has the consequence of the routes being merged which can the undesirable behaviour of having the matching component of the imported module displayed instead of the component of the importing module.
To fix this, you need to split the imported module into 2 modules: the first one with everything except the routes and the other one importing the first one and adding routes.
Then you can import the module without routes without any problem
Thursday, 26 December 2019
Tuesday, 22 January 2019
Run kubernetes on ubuntu VM behind corporate proxy using cttlm
edit file /etc/cntlm.conf
Set Gateways to yes as follow:
# Enable to allow access from other computers
#
Gateway yes
curl -LO https://storage.googleapis.com/kubernetes-release/release/$(curl -s https://storage.googleapis.com/kubernetes-release/release/stable.txt)/bin/linux/amd64/kubectl
chmod +x ./kubectl
sudo mv ./kubectl /usr/local/bin/kubectl
curl -Lo minikube https://storage.googleapis.com/minikube/releases/latest/minikube-linux-amd64 \
&& chmod +x minikube
sudo cp minikube /usr/local/bin && rm minikube
sudo -i (it's better to run minikube as root)
first time:
sudo minikube start --alsologtostderr --v=10 --vm-driver=none --docker-env http_proxy=http://172.10.0.1:3128 --docker-env https_proxyy=http://172.10.0.1:3128 --extra-config=kubelet.resolv-conf=/run/systemd/resolve/resolv.conf
subsequent times:
minikube start --extra-config=kubelet.resolv-conf=/run/systemd/resolve/resolv.conf
Set Gateways to yes as follow:
# Enable to allow access from other computers
#
Gateway yes
curl -LO https://storage.googleapis.com/kubernetes-release/release/$(curl -s https://storage.googleapis.com/kubernetes-release/release/stable.txt)/bin/linux/amd64/kubectl
chmod +x ./kubectl
sudo mv ./kubectl /usr/local/bin/kubectl
curl -Lo minikube https://storage.googleapis.com/minikube/releases/latest/minikube-linux-amd64 \
&& chmod +x minikube
sudo cp minikube /usr/local/bin && rm minikube
sudo -i (it's better to run minikube as root)
first time:
sudo minikube start --alsologtostderr --v=10 --vm-driver=none --docker-env http_proxy=http://172.10.0.1:3128 --docker-env https_proxyy=http://172.10.0.1:3128 --extra-config=kubelet.resolv-conf=/run/systemd/resolve/resolv.conf
subsequent times:
minikube start --extra-config=kubelet.resolv-conf=/run/systemd/resolve/resolv.conf
Subscribe to:
Posts (Atom)