close icon
NgConf

ng-conf 2016 Summary - Day One

Angular 2 has reached the release candidate milestone. Learn more and get caught up on all the news coming out of ng-conf 2016.

May 05, 2016

The annual ng-conf conference is upon us once again. This year, Angular 2 is all the rage. Angular 2 has entered release candidate and is inching ever-closer to a final 1.0...err...2.0 release.

In today's short post, we'll recap all the big announcements coming out of ng-conf 2016. Be sure to check out the big announcements from day two and day three as well.

Keynote

Brad Green opened up ng-conf this year with some pretty impressive announcements. Over 360,000 developers are already using Angular 2 in some capacity. Angular 2 is five times faster than Angular 1 and is already smaller than Angular 1 by almost 20kb which will help reduce load times of Angular 2 developed apps. Brad also announced a variety of Angular products that will truly make Angular 2 a leading platform for developing web and mobile applications. We'll examine these in depth below.

"Angular 1 is a framework. Angular 2 is a platform. - Brad Green"

Tweet

Tweet This

Angular Universal

Angular Universal

Angular Universal will allow developers to run their Angular 2 applications directly on the server. With Angular 1, the applications always ran on the client side, which made things like search engine optimization (SEO) and social sharing links difficult to implement as web crawlers generally do not execute JavaScript before scraping a webpage. When a user would share an Angular 1 app to Twitter for example, rather than seeing the title and description of the post they would instead see angular bindings {title} and {description} unless the developer spent extra time implementing a prerenderer.

Angular Universal currently works with NodeJS and ASP.NET, with more frameworks and languages supported in the future. Applications are built just as they would be on the front end with some slight changes to accompany features that servers do not have available such as setting up a redis store instead of localstorage. Angular Universal apps are rendered on the server and then sent to the client. This greatly decreases load times on mobile devices and makes the apps feel snappier.

Angular CLI

Angular CLI

Angular CLI aims to simply the way developers build Angular 2 apps. Where in the past you'd have to do a lot of the manual configuration to get up and running, with Angular CLI, you can type simple commands in your terminal such as ng generate component and the CLI will scaffold a new component for you.

The Angular CLI will do more than just scaffold new components and services for you though. It will help with both the build and deploy stages as well as linting, testing and formatting your applications.

Angular Mobile Toolkit

Angular Mobile

Angular Mobile Toolkit will allow developers to build progressive mobile apps with Angular 2. Progressive mobile apps are an evolution of mobile apps built with HTML, CSS and JavaScript with a few key features: instant loading, offline support, installable and handle notifications.

The debate between building native vs progressive mobile is heavily debated and both have their pros and cons. Native apps have better performance, re-engagement and access to hardware APIs. Web apps on the other hand have searchability, shareability and less friction/wider marketshare going for them.

The good news with Angular 2, you can build both native mobile apps, which we'll get to in a bit, as well as progressive mobile apps.

"Angular 2 allows developers to build both native and progressive mobile apps."

Tweet

Tweet This

Material 2

Angular Material

The de-facto design language for Android is Material Design, which is slowly making it's way to the web. Angular 1 already has a great library which implements a variety of Material Design patterns and Angular 2 is getting the same treatment. Material 2 is in an early alpha state at present but already has a variety of components implemented including checkboxes, form input elements, buttons and more.

Material 2 will allow developers to quickly build beautiful user interfaces without having to write a lot of custom CSS. The Material 2 team has also announced that they are working on a "Component Toolkit" which will implement best practices for building user interfaces with Angular 2 that will be decoupled from Material Design itself.

Augury for Angular 2

Angular Augury

Augury (formerly Batarangle) is a Chrome extension that will help developers debug and understand how their Angular 2 application is running in real time. The app is built by Rangle.io and offers a whole suite of features to help developers understand their apps component relationships, get detailed component info as well as understand the component hierarchy. Augury will also help developers understand how routing is affecting their app as well as allow developers to edit component attributes on the fly and see those changes reflected in real time.

Angular 2 Becomes A Platform

If there's one key takeaway from today, it's that Angular 2 is a platform for app development. The core library has been broken up and modularized into logical components, tooling has greatly improved and extending Angular 2 to support other frameworks is becoming a reality. Let's look at some of the other announcements made today.

Native Mobile Applications with NativeScript 2.0

NativeScript 2.0 was announced today with support for Angular 2. NativeScript 2.0 allows developers to build native mobile applications with Angular 2. Nativescript converts Angular 2 code into the native iOS and Android API calls which are then executed as if you were writing a native mobile application in Objective-C or Java. A huge feature that Nativescript also supports is the ability to use existing native iOS Cocoa Pods and Android Gradle plugins directly in your TypeScript code.

Component Router

The Router in Angular 2 is very powerful. Misko Hevery, the father of Angular, gave a presentation on the new router and how it will improve performance of Angular 2 applications. The Angular 2 Router will only load components when it absolutely needs them. The componetized router also handles the declaration of routes in a unique way. Rather than have a single route definition file that lists all the possible routes your app will have, you declare routes in each of your components. This way, you separate the routing concerns to individual components.

Aside: Auth0's Angular 2 JWT Library

Now is the perfect time to deep your feet into Angular 2 development. If you are building a consumer facing app, you are likely to need a user authentication system. Here at Auth0, we've built a helper library for handling JSON Web Token (JWT) authentication. The Angular 2 JWT library can help you integrate JWT authentication with both the Auth0 platform or your own authentication system. If you don't already have an Auth0 account, sign up for free and get started today.

If you would like a crash course into Angular 2, check our Ryan Chenkie's Angular 2 series starting with Angular 2 Pipes.

Conclusion and Additional Resources

Day 1 of ng-conf has been exciting. Angular 2 is shaping up to become a great platform for building both web and mobile applications that can run on both the server and client. This is a highly ambitious goal by the team, but one that seems attainable after today.

To conclude, I'll leave you with a list of additional resources and links to help you both learn Angular 2 and stay up to date with the latest news and announcements.

  • Twitter icon
  • LinkedIn icon
  • Faceboook icon