Zurück
The web composed into components: Angular2 tested

Oops... Seite nicht gefunden

404

Die von Ihnen gesuchte Seite ist nicht verfügbar

Den Standardinhalt zeigen   Zurück zur Startseite

The web composed into components: Angular2 tested

2016 / 15/02

Even though Angular2 is still in beta phase, our development team has already tried how the power of the new framework can be leveraged and solve current programming issues regarding the web. Our experience is impressive.

Modern web development - Angular2

Angular2 throws completely new light upon web development. Our way of thinking has to evolve; we have to see everything in components. From a developer’s point of view this means more efficient processes and the creation of portable codebases that can be reused in other projects. From a business perspective it means shorter development times and lower costs.

The primary language of the new framework is TypeScript, meaning that we can take advantage of code assistance, refactoring, code navigation provided by IDEs and type checking. This results in better quality code, better quality product. However some other languages can be used as well: Dart, ECMAScript 6 and ECMAScript 5.

Performance

A huge problem of current SPAs (Single Page Application) is that after the page loads we see a blank page or maybe a loading screen. Then suddenly the content appears. This affects especially mobile devices that have slower network access and users are used to smooth native apps.

Angular2 solves this problem by server-side rendering. The server returns a complete, static html page that can be displayed by the browsers right away.
Besides the fast startup the solution has another great advantage: it also solves the SEO issue. Since a complete html page is returned, Google can index content and show relevant search results.

Smooth operation is ensured by the completely rewritten change detection system and the fact that the whole application runs in Web Workers. The latter basically brings multithreading to the JavaScript world so the time-consuming tasks can be delegated to background threads making the browser responsive.

Tuned for the future

Thanks to TypeScript we can code in a future form of JavaScript, leveraging the latest and greatest features and leading to the rise of modern codebases. However browsers still fully or partially lack supporting some of the new features, we can still use them because TypeScript takes care of compiling the code back to that kind of JavaScript that today’s browsers can interpret.

In Angular2 everything consists of components that can be reused. Even better news is that not only Angular2 components but also standard Web components (currently only Google provides full support for Web components but Microsoft Edge is on its way) can be used in other Angular2 based projects.

Decoupled from browsers

Because of the so many new features the question arises: which browsers are supported? Well, a wide range, namely Chrome, Firefox, IE9+, Edge, Safari, Android 4.1 are supported.

Angular2 is not tight to the browser’s DOM. This makes it cross platform, it can be used not only to develop web apps but to create hybrid mobile apps with Ionic2 or native ones with Telerik NativeScript for Android and iOS.

Guarantee for success

Alongside Google and Microsoft others contribute to Angular2’s development process. The increased speed and the usage of modern JavaScript features make Angular2 a worthy opponent to Reac.js.

It cannot be neglected that Google already uses Angular2 in several of its inner projects. Furthermore, frameworks suitable for mobile development (Ionic2 or Telerik NativeScript) also support Angular2.