Angular 2 presents two different methods for creating forms, template-driven (what we were used to in Angular 1.x), or reactive. We’re going to explore the absolute fundamentals of the reactive Angular 2 forms, covering ngForm, ngModel, ngModelGroup, submit events, validation and error messages.
In an Angular 2 application that uses TypeScript, the TypeScript compiler can extract type APIs from your .ts files. But sometimes, you need to tell the TypeScript compiler to expect "ambient values" that are provided outside of the scope of the known .ts files. To do this, you have to install a custom Typings file - *.d.ts - in your Angular 2 application. Doing this, at least for me as a TypeScript novice, was not straightforward. And, no amount of Googling seemed to provide an answer.
Last year, Micah Silverman wrote about integrating Spring Boot, Spring Security, and Stormpath. Today, I’m going to take you on a similar journey, except this time you’ll be using AngularJS and Stormpath’s AngularJS SDK for the UI. Along the way, you’ll learn how to create REST endpoints with Spring Data REST, configure Spring Boot to handle cross-domain requests, and use Stormpath to make authentication a breeze.