Angular 2

diff es6 vs es5 unicorn

diff es6 vs es5 unicorn

directive change, ng2 eliminates scope, restrict, link, module has a component method instead my-narwhal

typescript is a superscript of ES6.

   
component encapsulates the template, data and behavior of a view. components can be nested, in a tree like structure, and reusable. is a ts class. completely decoupled from the DOM, binding used instead. facilitates unit testing.
router responsible for navigation
directive modify DOM elements so as to modify their behavior
service component->service->rest api