//官网https://www.angular.cn/
安装
npm install -g @angular/cling --version
创建应用
ng new xxx
启动
ng serve 或 npm start
目前只需要关注src --app --app.module.ts // 项目的根模块(App.vue),告诉angular如何组装应用
//Angular 的核心模块import { NgModule } from '@angular/core';// 浏览器解析模块import { BrowserModule } from '@angular/platform-browser';// App组件import { AppComponent } from './app.component';@NgModule({ // 配置(声明)当前项目运行依赖的组件 declarations: [ AppComponent ], // 配置当前项目运行依赖的其他模块 imports: [ BrowserModule ], // 配置项目所需要的服务 providers: [], // 指定应用的主视图 bootstrap: [AppComponent]})// 通过导出AppModule这个模块,来启动应用export class AppModule { }