Now, instead of console logging errors, we can add friendly notification popups if something goes wrong or if an action in successful.
We'll use a JavaScript library called AlertifyJS for this.
npm install alertifyjs --save
Adding Alertify CSS and JS files
In the .angular-cli.json file, first add the relative paths to the alertify CSS and alertify bootstrap CSS files into the styles array (order is important!):