Recently learned angular2, so from the official website Hero example began to learn. After a few twists and ends, this example is finished. Profits are shallow. Personal advice before you start learning An example, you can learn some concepts, modules, components, decorators ... that help you to write the logic of the code. Tell me about the problems I encountered during my studies:
1. First attach the official Chinese tutorial Link: https://www.angular.cn/tutorial
2. Do not use "Quick Start" in the above tutorial when creating a project, because the project created by this tutorial does not SYSTEMJS This library later will be an error, nor systemjs.config.js this file, Late myself in the configuration a little trouble annoying. We use the " Development Environment ": https://www.angular.cn/guide/setup, this tutorial uses Git to create a new project, and then follow the steps to delete the unwanted files.
3. Because of the initial understanding of ANGULAR2 so in the study is basically to follow the steps of the code, their own thinking very little, pay more attention to spelling mistakes.
4. Attach the GitHub link I wrote myself, satisfied please give a star,[email protected]:lihui13603981029/heroapp.git download after executing NPM install installation library, then execute NPM start Project can Run out. NPM installation Method Online A lot, can own Baidu. The usual method of installing node, because installing node installs NPM at the same time.
ANGULAR2 Official Demo Heroapp