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


Github Actions - CI/CD for React.js

 1. Install gh-pages npm package Command:  npm install gh-pages --save-dev 2. In package.json, add the homepage url "homepage": &q...