1.1. Angular 2 tutorial

发布时间 :2025-10-25 12:21:05 UTC      

Image0

Angular2 is an open source JavaScript library maintained by Google to assistsingle-page applications.

Angular2 is an upgraded version of Angular 1.x, which has a significant improvement in performance and can well support Web development components.

Angular2, which was released in September 2016, is based on ES6.

1.1.1. The basic knowledge needed to learn this tutorial

Before taking this tutorial, you need to have a basic front-end foundation: HTML, CSS, JavaScript. You also need to know about NPM and TypeScript.

  • Introduction to the use of NPM.

  • TypeScript getting started tutorial

1.1.2. The difference between Angular2.x and Angular1.x

The difference between Angular2.x and Angular1.x is similar to that between Java and JavaScript or between Lei Feng and Leifeng Pagoda, so you need to be prepared to relearn a language when learning Angular2.x.

1.1.3. Operating conditions!

Since various environments (browsers or Node) currently do not support ES6 code, you need some shim and polyfill (required by IE) so that thecode written by ES6 can be converted into ES5 form and run normally in the browser.

Image1

As you can see from the figure above, the following module loaders are required under the Es5 browser:

  • systemjs -general module loader, which supports JS module loading in various formats such as AMD, CommonJS, ES6, etc.

  • es6-module-loader -ES6 module loader systemjs the module is automatically loaded.

  • traceur -ES6 transcoder to convert ES6 code into ES5 code supported by the current browser systemjs the module is automatically loaded.

1.1.4. Related reference documentation

Principles, Technologies, and Methods of Geographic Information Systems  102

In recent years, Geographic Information Systems (GIS) have undergone rapid development in both theoretical and practical dimensions. GIS has been widely applied for modeling and decision-making support across various fields such as urban management, regional planning, and environmental remediation, establishing geographic information as a vital component of the information era. The introduction of the “Digital Earth” concept has further accelerated the advancement of GIS, which serves as its technical foundation. Concurrently, scholars have been dedicated to theoretical research in areas like spatial cognition, spatial data uncertainty, and the formalization of spatial relationships. This reflects the dual nature of GIS as both an applied technology and an academic discipline, with the two aspects forming a mutually reinforcing cycle of progress.