Simple dome developed by AngularJS 2.0

Source: Internet
Author: User

This is not so much a demo as a master's course. Although the demo came out, but some of the problems I still do not understand, if there is a angularjs2.0 God, please come in to guide, ~~~~~ not very grateful.

Description 1th: The tool I used was webstrom. There is a problem: the code written clearly no errors, but the project will always be deliberately damaged situation ~ ~ ~ Then need to restart the Webstorm, the project is good ~ ~ ~ ~ ~. If this is the case ~ ~

Description 2nd:Webstorm is only the other people over the cuff, look at the introduction of the evening, if needed in the Webstrom inside use ANGULARJS need to install plug-ins ~ ~ ~ because I had a plug-in when I copied it ~ ~ ~ so no installation ~ ~ ~ As a result, you cannot select a version when creating a Angularjs project, and create a version of angular1.5.8 directly, unlike the 2.0 I used. such as: version there is no way to choose ~ ~ What is the reason why, have the great god know? ~~~~~~~~~~~~~~~~

The next step is to create the project process ~ ~ ~

One: first create a project named: QuickStart. Ignoring the red part, after creation is complete, the folder below is only external Libraries.

Two: Create a Package.json file, and then copy the code from the Chinese website of angualrjs2.0.

Three: Next, create a file named Tsconfig.json.

Then enter NPM install in the terminal and download a node-module.

So here are some questions:Package.json's role is only to download the package or have any other use. If I download the node_modules to delete Package.json can run ~~~~~ I try to delete it as if it is OK, but still want to confirm.

What is the role of Tsconfig.json, is not the use of TS to need this file, if not the file will be what. ~ ~ ~ I tried not to run the project.

Four: Create a systemjs.config.js file. This file is copied, in fact, I have not read ~ ~ ~ ~ ~

The code seems to be not understood, but it seems that it has to be able to run.

If you change the systemjs.config.js to Require.js can I use it ~ ~ ~ ~ ~ ~ can I have a great God to read this module?

Five: Create an app file under the QuickStart folder.

There are three of these files below. Look at the code, respectively. Here, there's nothing to ask, ~~~~~~~~~~.

Ignore red wavy lines ~ ~ I don't know what's going on, ~~~~~~~~~~~~.

Then in QuickStart Road to create a index.html page, introduce the JS file.

In fact, I do not know what the introduction of the JS file is exactly what the role of the introduction of the Systemjs.config.js file can be run.

May I introduce you to the ~~~~~~?

Last Run result

Sincerely hope to have a person to guide one or two, or to Exchange can ~ ~ ~ how much to say ~ ~ ~

Appreciate.

Simple dome developed by AngularJS 2.0

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.