Paul Krill
Editor at Large

AngularJS 1.4 is built for speed, animations

news
May 28, 20153 mins

The JavaScript framework's upgrade also fixes bugs and makes JQuery accommodations

Version 1.4 of the AngularJS JavaScript framework, focusing on enhancements for animation and performance, is now available.

The release, noted in an AngularJS announcements blog on Wednesday, has been in development since November. “This release brings many feature enhancements and performance improvements, while at the same time introducing as few breaking changes as possible. For apps following best practices, we expect the migration from Angular 1.3 to 1.4 to be smooth and the list of breaking changes is documented in the migration doc,” says the blog, posted by Peter Bacon Darwin. A Google project, AngularJS has been positioned as a JavaScript UI framework featuring dependency injection and a focus on HTML.

AngularJS 1.4 offers refactored animation, which makes it possible to imperatively control CSS-based transitions/keyrames via a service called $animateCss. “We can now also animate elements across pages via animation anchoring,” the blog states.

JavaScript animation also is a focus. “AngularJS 1.4 and higher has taken steps to make the amalgamation of CSS and JS animations more flexible,” AngularJS documentation states. “However, unlike earlier versions of Angular, defining CSS and JS animations to work off of the same CSS class will not work anymore.”

To improve performance, version 1.4 implements a rewrite of the Angular expression parser and improvements to scope watching, the compiler, and the ngOptions attribute. For internationalization, version 1.4 improves i18n support for Angular apps. The first piece of this work features an ngMessageFormat module supporting the ICU MessageFormat interpolation syntax.

The $http service in AngularJS, for communication with remote HTTP servers, now implements a mechanism for providing custom URL parameter serialization, to make it easy to connect end points that expect parameters to follow JQuery-style parameter serialization. Users also will be able to specify which version of JQuery, if any, they want to use. “This option also allows developers to instruct Angular to always use jqLite even if jQuery is present on the page, which can significantly improve performance for applications that are doing a lot of DOM manipulation via Angular’s templating engine,” says the documentation.

More than 100 bugs have been fixed in version 1.4, and two features — the component helper and the component-oriented hierarchical router — have been pulled. “The main reason for this decision,” according to Angular, “was that both of these deliverables were not ready for the important task of simplifying the migration path from Angular 1 to Angular 2. Rather than delay the 1.4 release further, we decided to move these two deliverables into the 1.5 release.”

Paul Krill

Paul Krill is editor at large at InfoWorld. Paul has been covering computer technology as a news and feature reporter for more than 35 years, including 30 years at InfoWorld. He has specialized in coverage of software development tools and technologies since the 1990s, and he continues to lead InfoWorld’s news coverage of software development platforms including Java and .NET and programming languages including JavaScript, TypeScript, PHP, Python, Ruby, Rust, and Go. Long trusted as a reporter who prioritizes accuracy, integrity, and the best interests of readers, Paul is sought out by technology companies and industry organizations who want to reach InfoWorld’s audience of software developers and other information technology professionals. Paul has won a “Best Technology News Coverage” award from IDG.

More from this author