angular.js - Is there any tutorial on angular2 that does not require git clone xxxx first?
黄舟
黄舟 2017-05-15 17:11:45
0
1
600

I finished reading this book last night and was confused. I also read the official Chinese documentation and found that the first step is to download a project from github
git clone xxxx
thenng start, open the browser and you can see the page.
The next step is to create a new ts file according to the learning content, write the code, refresh the browser, and then you can see the corresponding content
In this case, if I plan to use angularjs to make one For a formal project, the first step is to clone it on github and then start working on your own project based on this?
Is there any tutorial on angular2 that does not require git clone xxxx first?

Personal understanding, I feel that angular2 is:
1, install typescript related stuff in npm
2, write ts file
3, compile and generate csc xxx.ts xxx.js
4, the html page references the generated xxx.js, and introduces other angular2 related js
5. You can see the effect by running the html page on the server, such as http://localhost /index.html

黄舟
黄舟

人生最曼妙的风景,竟是内心的淡定与从容!

reply all(1)
伊谢尔伦

You can also write a framework yourself. The things git cloned are for your convenience. Not only the typescript part, but also to monitor changes during the development process, recompile and refresh the page, and build to merge, compress and package the code to generate a release version.

Github just helps you build the necessary environment. You don’t have to clone the official one as the basis. There are many open source projects on Github. You can find one that suits your needs, such as routing, componentization, and on-demand loading.

The open source projects on github are for your convenience, automating what you need to do manually

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template