# lesson-angular **Repository Path**: greengis/lesson-angular ## Basic Information - **Project Name**: lesson-angular - **Description**: angular&zorro template - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 7 - **Created**: 2021-09-21 - **Last Updated**: 2022-05-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # Angular This project was generated with [Angular CLI](https://github.com/angular/angular-cli) version 12.2.4. ## Steps ### Template Steps 1.npm install -g @angular/cli 2.ng new "你的项目名称" 注意:先到项目的上级目录,再运行命令 3.ng add ng-zorro-antd 4.ng serve ### Leaflet Steps 1.npm install leaflet --save 2.cd src/app/pages 3.ng g m map 4.ng g c map 5.copy routing.module 6.map.module import routing.module 7.add leaflet html+css+js 8.app-routing.module add routing 9.app.component.html add routerLink 10.styles.scss add leaflet.css ### ECharts Steps 1.npm install echarts --save 2.cd src/app/pages 3.ng g m chart 4.ng g c chart 5.copy routing.module 6.chart.module import routing.module 7.add echarts html+css+js 8.app-routing.module add routing 9.app.component.html add routerLink ### Student Steps 1.cd src/app/pages 2.ng g m student 3.ng g c student 4.copy routing.module 5.student.module import routing.module 6.config service&json&app module.load 7.student.service 8.add student html+css+js 9.app-routing.module add routing 10.app.component.html add routerLink ## Development server Run `ng serve` for a dev server. Navigate to `http://localhost:4200/`. The app will automatically reload if you change any of the source files. ## Build Run `ng build` to build the project. The build artifacts will be stored in the `dist/` directory. ## Running unit tests Run `ng test` to execute the unit tests via [Karma](https://karma-runner.github.io). ## Running end-to-end tests Run `ng e2e` to execute the end-to-end tests via a platform of your choice. To use this command, you need to first add a package that implements end-to-end testing capabilities. ## Further help To get more help on the Angular CLI use `ng help` or go check out the [Angular CLI Overview and Command Reference](https://angular.io/cli) page.