Monday, January 21, 2019

Angular - Constructor vs. ngOnInit

Constructor is called when the class is instantiated. It is a good place to initialize class properties and inject dependencies.

ngOnInit is a lifecycle hook and is called after the constructor is called and all the variables are initialized. 

Order of Events


Wednesday, January 16, 2019

Add Visual Studio solution to Github through command line


Add Visual Studio solution to Github using command line

git init
git add .
git commit -m "Initial commit"

git config --global user.name "your_git_username"
git config --global user.email "your_git_email"

git remote add origin https://github.com/<yourusername>/yourrepositoryname.git

git push -u origin master


Deploying ASP.NET MVC app on Ubuntu

.NET 10 MVC Deployment on Ubuntu with Nginx, systemd, PostgreSQL & Cloudflare Architecture: Browser → Cloudflare (Flexible SSL)...