Angular2 official demo heroApp, angular2heroapp
I recently learned angular2, so I started learning from the hero example on the official website. After several twists and turns, this example is finally completed. Benefits. I personally recommend that you first understand some concepts, modules, components, and decorators before learning examples to help you write the logic of code. Let's talk about the problems I encountered during my study:
1. First attach the link to the Chinese official Tutorial: https://www.angular.cn/tutorial
2. do not use the above tutorial "Quick Start" when creating a project, because the project created in this tutorial does not have the systemjs library, and an error will be reported later, and there is no systemjs. config. the js file will be a little troublesome for later configuration. We adopt the "Development Environment": Development.
3. Due to my initial understanding of angular2, I had to work on code by step. I had very few ideas and paid more attention to spelling mistakes.
4. attached my own GitHub link, please give a star, git@github.com: lihui13603981029/heroApp. after downloading git, run npm install to install the library, and then run the npm start project. There are a lot of npm installation methods on the Internet, you can Baidu. The common method for installing node is that npm is installed at the same time when node is installed.