Learning Angular 2: Exploring the Current Features of Forms

Angular 2 , Angular 2 Learning No Comments »

One of the things I noticed when I completed the official "Tour of Heroes" Angular 2 tutorial was that there wasn't a lesson on using forms:  in Angular 1 input bindings that were managed under ngForm provided data state, validation, and error-handling features, and I had heard that Angular 2 had the same thing.

Apparently forms are another aspect of Angular 2 that is still somewhat of a moving target: the current "Forms" chapter under the "Basics" category of the Angular 2 site documents a deprecated version and points to a newer documentation page.  I decided to read through the newer documentation page and try out the current forms functionality myself, building off of my existing Tour of Heroes project codebase.

Read more...

Learning Angular 2: Tour of Heroes Tutorial, Lesson 7

Angular 2 , Angular 2 Learning No Comments »

The final lesson of the Tour of Heroes tutorial covers using Angular 2 with HTTP.

Read more...

Learning Angular 2: Tour of Heroes Tutorial, Lesson 6

Angular 2 , Angular 2 Learning , IntelliJ IDE No Comments »

The next lesson in the Tour of Heroes tutorial covers an important topic: routing.  I've been looking forward to this particular lesson because I was curious as to how routing would work given the new component-structured architecture.

Read more...

Learning Angular 2: Tour of Heroes Tutorial, Lesson 5

Angular 2 , Angular 2 Learning No Comments »

Lesson 5 of the Tour of Heroes tutorial introduces services.

Read more...

Learning Angular 2: Tour of Heroes Tutorial, Lesson 4

Angular 2 , Angular 2 Learning , IntelliJ IDE No Comments »

This lesson starts off with creating a new component and a separate Hero class file which is then imported into both of the current components:


import { Hero } from './hero';

Worth noting that './' is relative path syntax that indicates that the file we're importing from lives in the same directory as the current file.  

Read more...