Skip to main content

Posts

Showing posts from April 6, 2016
The Website Angular 2 has finally hit beta which was the mental milestone for me to start writing Angular 2 content. Hooray! To kick things off, I wanted to port a project that I covered in my  Building a Website with AngularJS Pt 2 – Now With State!  post to Angular 2. We are going to get acquainted with the brave new world of Angular 2 by building out a simple website so we can see how the Angular 2 pieces come together. Grab the code from the repository below and let’s go! Code Compile and Serve There are two main ways to compile and serve an Angular 2 application and that is via  webpack  or  systemjs . For the sake of simplicity, we are going to go with systemjs and borrow from the  Tour of Heroes  repository which is covered in the official  Angular 2 Tutorial . You can write your Angular 2 application in ES5, EcmaScript 2015 or TypeScript, but the framework lends itself best to TypeScript. Writing in TypeScript requires a bit...