81757124889ebb69cb8bk100578002orig

Angular 1.5.0 paves the way for Angular 2

Paving the path for the upcoming Angular 2 JavaScript framework, developers of the popular technology have released version 1.5.0, which improves the process for building applications from components.

Developer Pete Bacon Darwin detailed in an Angular blog post how release 1.5.0 serves as a precursor to Angular 2. "In this release we have added features that will enable developers to write Angular 1 applications that are closer to the way that applications are structured in Angular 2," he said.

Version 1.5.0 enables developers to easily define a component directive via the module.component() helper method. "For example a simple component only needs to provide a template, some bindings, and a controller," wrote Darwin. "For the remaining directive options, we set sensible defaults." Use of components already has been the primary way of building applications with Angular.

Lifecycle hooks akin to Angular 2 are featured as well. "If your directive/component controller has a method called $onInit() the compiler will now call it after the component has been initialized and all its bindings have been set up," Darwin said. "This provides a clear place to put the initialization code for your components."

Version 1.5.0 also features instantiation of native ECMAScript 6 classes. "Due to variable browser support, this is a volatile feature, so be careful to test on your target browsers before going to production," Darwin warned. Security has been enhanced in the release as well.

Due sometime early this year, Angular 2 is a rewritten, rearchitected version of the Google-developed framework. It focuses on speed in rendering and updating pages as well as support for building mobile apps for Google Android and Apple iOS. Development of Angular began in 2009, with the intention of making it easier for Web designers to add extra HTML to code, turning static content into dynamic content.

IDG Insider

PREVIOUS ARTICLE

« Law firm searches for plaintiffs for class action suit against Apple over 'Error 53'

NEXT ARTICLE

Samsung hopes Raspberry Pi can spread Tizen OS adoption »
author_image
IDG News Service

The IDG News Service is the world's leading daily source of global IT news, commentary and editorial resources. The News Service distributes content to IDG's more than 300 IT publications in more than 60 countries.

  • Mail

Poll

Do you think your smartphone is making you a workaholic?