class Person { public string name; public string address; constructor(name, address) { this.name = name; this.address = address; } }
Compilation is a process which converts human friendly code to machine friendly code
Graphics taken from the Essential Angular blogpost by Victor Savkin
All the magic happens JIT (Just in Time) on the browser
This is what Angular 1.x compiler did
App is pre-built/offline-compiled when it lands on the browser
https://angular.io/docs/ts/latest/cookbook/aot-compiler.html
2 days of Angular 2 Awesomeness
Walk in as a noob, walk out as an Angular Pro
By Mohammad Umair Khan
Breaking down compilation in Angular 2 for Ng Pakistan meetup
Trainer, Mentor, Foo, Bar !