Skip to content

Angular2 notes

Illegitimis edited this page Jun 8, 2017 · 4 revisions

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
npm install -g typescript
npm install -g angular-cli
ng new project_name
ng serve
npm run lite

<<

Clone this wiki locally