Information Technology News.

Google's Angular web application framework is now up to version 4.0

Share on Twitter.

Sponsered ad: Get a Linux Enterprise server with 92 Gigs of RAM, 16 CPUs and 8 TB of storage at our liquidation sale. Only one left in stock.

Sponsered ad: Order the best SMTP service for your business. Guaranteed or your money back.

March 28, 2017

Google's Angular is a popular web application framework, and it has now reached version 4.0 last week, having skipped version 3 entirely, we are told.

Known for its role in the MEAN stack (MongoDB, ExpressJS, AngularJS, and Node.js) Angular lost the "JS" suffix and some of its momentum when version 2 appeared in mid-2016.

That's largely because it was incompatible with the first release. Dispensing with "JS" wasn't merely a change in branding. It reflected the fact that Angular 2.0 was written in TypeScript, a superset of JavaScript created by Microsoft that adds support for static typing, Google asserted.

Static typing (checking the type of data associated with a variable at compile time) can reduce type-related errors by making them apparent before the code gets run on the software.

Though StackOverflow's 2017 Developer Survey puts AngularJS ahead of React, that may reflect the size of Angular's installed base more than current affinities.

Given other metrics, such as GitHub stars, not to mention those voicing enthusiasm for React and Vue.js, Angular looks to have lost some ground against lighter weight alternatives.

But comparing Angular to React or Vue.js isn't entirely accurate since Angular has higher ambitions.

"We're very aware of what's going on in the ecosystem," said Stephen Fluin, developer advocate on Angular at Google. "But we do have a different perspective," he added.

Where React and Vue.js qualify as frameworks, "We're trying to move up to the level of a platform. We want to help you at all parts of the development lifecycle," he told us.

And that can be seen in the formal adoption of Angular Universal, a server-side version of Angular that began in late 2014 as a community-developed offshoot of the client-side project.

Fluin asserts that around 2009 developers began rendering more and more application code on the client-side, to make apps less likely to get bogged down by various delays in receiving data from the server.

However, client-side code has its own set of disadvantages, such as not being visible to some search engines, other than Google, which can render client-side web app code to index it.

Additionally, Google Accelerated Mobile Pages (AMP) explicitly disallows client-side JavaScript from being executed and cached.

Angular Universal allows JavaScript code to be processed server-side and served to the client, Fluin explained. One of the major goals with the version 4.0 release, said Fluin, was to avoid the breaking changes that occurred between version 1 and version 2.

"The thing we were hoping to achieve was compatibility," Fluin added. "We want to make sure people can come with us."

Beyond that, Version 4.0 aims to address some of the performance concerns voiced by Angular developers at Google. The latest build cuts down on the size of the generated code for Angular components by about 60 percent.

Fluin added that much of the initial reaction he'd seen so far about the version 4 release came from developers pleased that their Angular app components had become smaller in size.

Along those lines, version 4.0 has moved the animations package out of @angular/core, so that the production code doesn't have to carry unneeded baggage if animations aren't necessary.

Other improvements include an expanded template binding syntax and Typescript 2.1/2.2 compatibility.

Fluin asserted that looking ahead, the Angular team at Google has enabled Service Worker support as an experimental feature, accessible by setting the appropriate flag. Angular apps that utilize Service Workers will work offline automatically, he added.

He also asserted that Angular has just released an experimental Visual Studio Code extension that taps into the standardized language service layer.

The extension provides developers with a deeper understanding of their application code through capabilities like tab completion and errors at write time rather than build time.

Source: Google.

Sponsered ad: Get a Linux Enterprise server with 92 Gigs of RAM, 16 CPUs and 8 TB of storage at our liquidation sale. Only one left in stock.

Sponsered ad: Order the best SMTP service for your business. Guaranteed or your money back.

Share on Twitter.

IT News Archives | Site Search | Advertise on IT Direction | Contact | Home

All logos, trade marks or service marks on this site are the property of their respective owners.

Sponsored by Sure Mail™, Avantex and
by Montreal Server Colocation.

       © IT Direction. All rights reserved.