Build Progressive Web App (PWA) with Angular
Let´s use the most recent version of Angular (currently version 12) to build a Progressive Web Application (PWA) that works…
How to kill/terminate the process on specific port ?
Let´s say we have this warning “Port 4200 is already in use” when running the ng serve command“. And all…
The “fatal: refusing to merge unrelated histories” Git error
The “fatal: refusing to merge unrelated histories” Git error occurs when two unrelated projects are merged (i.e., projects that are not aware of each…
Docker Compose (Part II)
Let´s say , we have a new site project with WordPress. To simplify infrastructure management, we want to deploy all…
How to find out which program is using a particular port?
Let´s say , we want to find out which program is using the port 80 and 443 in our computer.…
How to clear the cache in npm
When we install a package using the npm install <package-name> command, npm stores the cache inside the user file system. The default…
How to add class to your host element in Angular
There are different ways to solve that, depending of the situation or what we want to achieve. Solution A :…
How to use navigator and location DOM variables in TypeScript
Let´s assume, we need to access some DOM variables like navigator and location. And we want to do that in…
How to handle window.event with typescript ?
Normally when we want to catch an event on a page in js: window.onkeydown = function (event) { //Do something…
How to set default paramaters for “ng serve” in config file?
instead of typing : ng serve --host example.com --port 4205 We just want to type ng serve Angular CLI 6+…






