Angular By Solutions  -  Part-1

Angular is a large framework offering a variety of tools to create a solution. There are many ways to achieve the same thing. One can easily get confused about the path they should choose for a particular situation. This series is dedicated to solve some of the conundrum an Angular developer faces. Each part comprises of a problem situation and a few proposed solutions . Examples and code references will be according to Angular Version 7. Hope you like it. Common imports & decorators are omitted from code samples for simplicity. Situation 1: How to monitor changes of component properties? Angular project is basically a tree of components & the common functionality of a component is to declare some properties, bind them to view , watch for changes and do some task when the value is changed. Angular by default updates the property value attached with the model (Not for cases like ngModelChange when we have to manually (more) »

Use multiple Git accounts from a single Linux machine

As developers, you must have used git & git based platforms like GitHub, GitLab, Bitbucket, etc. on a daily basis. Let's say you have your personal GitHub & GitLab accounts associated with your personal email id. Now, you join a company where you have been given a new official email id & you have to create new GitHub & GitLab account with that email id. Assume you have the following active accounts: github.com (you@gmail.com) gitlab.com (you@gmail.com) github.com (you@yourcompany.com) gitlab.yourcompany.com (you@yourcompany.com) You can clearly not use a single SSH key for accessing all your repositories. Also in global .gitconfig file you can't create two user tags for both the email ids. How to manage multiple SSH keys in Git Configs then? Option 1 (meh!) Create two users in your OS, one for Personal use & other for your Company. Switch your profile accordingly and (more) »