Start the process angular9 study notes Angular NgModule (module) Angular Service (Service) Angular of Angular http

Preface:

     Angular AngularJS as the first version of the 2010 release of its initial release, it has been 10 years. In addition to this initial version (never learned), the project has been to use 8.x version from 2.x to the project so far, and now Angular the stable version 9 by the end of 2019. Angular use TypeScript language development, for a "once" back-end, this is a programming language developed by Microsoft father, there are many similar similar feeling. In addition to beginning to use a brush, official documents, to the back of each version upgrade, it is very difficult to have the time to focus on the whole look down. Taking advantage of the New Year to put n days, take over again, and would like to take notes to write this essay, a deeper impression.

Setting up an environment

Everything is based on the environment, open nodejs installation nodejs official website to download the corresponding system, after checking whether the installation was successful.

Angular CLI installation

npm install -g @angular/cli

2. Create a new project

Run CLI commands ng new xxx, will receive an initial application project.

a new angular-project-name

Directory Structure

3. Start the application

Angular-Project- cd name // command to build this application, start the development server, monitor source file, and when those files changed rebuild this application 
ng serve --open // flags will open a browser and access http://localhost:4200/

 

Conclusion: The most basic build environment, create a new application, let the program up and running.

The following is a learning record Angular each point

  1. Angular NgModule (module)

  2. Angular Service (Service)

  3. Angular boot process

  4. Angular http

  5. Angular Router (Routing)

  6. Angular Component (component)

  7. .........


此随笔乃本人学习工作记录,如有疑问欢迎在下面评论,转载请标明出处。

如果对您有帮助请动动鼠标右下方给我来个赞,您的支持是我最大的动力。

Guess you like

Origin www.cnblogs.com/huangenai/p/12188882.html