The best applications are coded properly. This sounds like an obvious statement, but by ‘properly’, I mean that the code not only does its job well, but is also easy to add to, maintain and debug. The main reason for using a consistent set of coding conventions is to standardise the structure and coding style… Continue reading Coding Style Guide
Category: AngularJS
Vis.js Timeline
Vis.js is a dynamic, browser based visualisation library. The library is designed to be easy to use, to handle large amounts of dynamic data, and to enable manipulation of and interaction with the data. The library consists of the components DataSet, Timeline, Network, Graph2d and Graph3d. Timeline Overview The Timeline is an interactive visualization chart… Continue reading Vis.js Timeline
Angular 2 with i18n
In some applications it is necessary to provide multilingual support to offer users the possibility to view your application in different languages. So to provide this facility we can build our application using i18n feature in Angular. Here we are going to build simple application to translate “Hello World” into different languages(Eg: English, French, German).… Continue reading Angular 2 with i18n
Angular2 Guards
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
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