In Angular2 one of the most changing module is Router and since it seems that one very interesting feature is Auth Guards. We will see the live example of Angular2 Route Guards in Authorisation. What is Angular 2 Route Guards As name suggests, you can restrict the routes in your application to control how user… Continue reading Angular2 Guards
Month: February 2017
Unit testing using Karma
One of the most brilliant feature of Angular is testing aspect, which is normally carried out using Karma. Karma has such a brilliant functionality for testing Angular code, that it just makes sense to use this framework. Here we are going to see how to write tests for addition of two numbers using Karma (Angular… Continue reading Unit testing using Karma