The web composed into components: Angular2 tested
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.
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.
Tuned for the future
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
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.