Quick Docker commands list

Quick Docker commands list

docker ps Show running containers docker ps -a Show all containers docker images Show images docker rm <container_name> Remove(delete) container docker rmi <image_name> Remove(delete) image docker stop <container_name> Stop container docker build -t my-app Build a docker image in local environment named my-app docker run -p 4000:80 -d my-app Run container my-app. When I go to port 4000 in my browser, I will reach to port 80 in docker environment. Run this container in detached mode. docker logs <container_id> Show…

Read More Read More

Manually triggering *ngFor at Angular

Manually triggering *ngFor at Angular

Concerning *ngFor and *ngForOf, there are three instances where the template is updated, these are: When an item is added, a new instance of the template is added to the DOM. When an item is removed, its template instance is removed from the DOM. When items are reordered, their respective templates are reordered in the DOM. But what if you’re only changing a property of an object within the array *ngFor uses? As per above rules, this is not detected…

Read More Read More

Quick Flexbox primer

Quick Flexbox primer

Flexbox has been around for quite some time. I’ve used Flexbox myself and it greatly helps on positioning and resizing elements in the document. It greatly reduces the amount of code you need to write to get the same result compared to the usual way of floating elements.   Here are some useful links and videos if you’d like to learn more about flexbox. CSS Tricks Flexbox Guide – A great guide where you can start your journey with Flexbox…

Read More Read More

Short explanation of NgModule

Short explanation of NgModule

You started working with Angular a short time ago. You created your fist components or services. Then, inevitably, you saw weird messages at your browser console that looks confusing with long stack traces. Like every other sane person, you go to the official documents. the trouble with the official documents for Angular though is they are written in a deep level. You can and will find yourself looking through page after page of deep explanations, while you only need some…

Read More Read More