-
Notifications
You must be signed in to change notification settings - Fork 5
Angular2 notes
Illegitimis edited this page Jun 8, 2017
·
4 revisions
- ECMAScript6 features comparison
- Wizards wizard A wizard to build a wizard. Demo application for integrating forms and redux, as showcased @ ng-conf 2017 duing FormControl Freaks: Redux Edition.
diff es6 vs es5 unicorn
directive change, ng2 eliminates scope, restrict, link, module has a component method instead
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