Paul Krill
Editor at Large

NativeScript deepens ties to Angular 2

news
Nov 23, 20162 mins

The JavaScript framework's 2017 road map includes accommodations for Chrome tools and Windows 10

knot rope joined tie tied
Credit: Pretzelpaws

NativeScript, Progress Software’s framework for building native mobile apps with JavaScript, will be tweaked for performance and debugging with an upcoming upgrade. Further integration with the Angular 2 JavaScript framework is in the works as well.

NativeScript 2.5, due in January, will feature ahead-of-time compilation to improve boot-up time on Android devices, said Todd Anglin, chief evangelist at Progress. The upgrade also will be fully integrated with Chrome developer tools for debugging and working with NativeScript apps. Such capabilities as step debugging, in which developers walk through code one line at a time, and UI tree inspection will be available.

Windows 10 support will be added next year so that developers can share the same code they use on iOS and Android on Windows mobile units. Also on tap are polyfills enabling use of technologies such as the canvas 2D Web API. “We want to enable that canvas code to work inside of a native app or a NativeScript app,” said Anglin.

Deeper integration with the Angular 2 framework and community, meanwhile, involves using Angular’s command line interface and debugging tools, such as Augury. Angular 2 brings options for performing common tasks like navigating between views and binding views to data, Anglin noted. (Google released Angular 2 in September, and it is already planning Angular 3 for a March 2017 release.)

For performance, NativeScript builds native UIs, driven by JavaScript code running in a virtual machine. “It’s not actually being cross-compiled into Swift or into Java or anything else like that,” Anglin said. “It’s the actual JavaScript running in this virtual machine, which actually can deliver very high performance.” A native-to-JavaScript bridge translates between JavaScript and native API calls and vice versa.

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