icon-search
03.01.2017

Introduction to Unit Testing Angular 2 Components

silvio-kundt-65518-unsplash

We have already mentioned that writing automated tests for your application is important. And it doesn’t seem to be an extravagant stance on the subject as the Internet is full of similar statements. In this article, we start our adventure with unit testing Angular 2 Components. Unit tests (A.K.A. component tests – don’t confuse with […]

20.12.2016

Angular 2 Route Guards used in authorization: real life example

sylwia-bartyzel-442-unsplash

During the later stages of Angular 2 development, the Beta and RC phases, one of the most dynamically changing module was the router. Since it¬†seems that one very interesting feature – the Route Guards – has reached its final version, we’d like to write¬†about it. In this post you’ll see the changes it went through […]

28.11.2016

Typescript decorators

jason-leung-330341-unsplash

Decorators are a proposed standard in ECMAScript2016. In Typescript we can enable them by setting the “experimentalDecorators” compiler flag. Decorators are a mechanism for modifying classes in a declarative fashion. If you come from a Java background they might look to you just like java annotations. They can be used for all the purposes runtime […]

24.11.2016

Grid-based layout development IV: Performance

ben-neale-244395-unsplash

CSS and performance? In this last article of the series we will focus on how all our different options to implement a basic layout influence the performance of our site. If you take the average application and compare the weight of your CSS files with the weight of the JS ones, specially when dealing with […]

10.11.2016

Structure of an Enterprise System in Angular 2

samuel-zeller-118195-unsplash

When building a large-scale application, one has to carefully design the code structure in the project. A poor structure can lead to maintainability issues and decrease the productivity of the development team. When the system grows, it will be hard to navigate through the structure and locate the class implementing a piece of functionality. In […]

08.11.2016

Building Complex Business Logic With Angular 2 Services

Angular 2 services

In a traditional, multi-layered architecture, front-end side of the application occupies two of them: presentation and a part of business logic layer. Components, which are the primary construction blocks in Angular 2, make up the presentation tier, while services pertain to the business-logic one. In this article we dive deep into the world of Angular […]