文件 | 说明 |
---|---|
e2e | end to end test |
node_modules | 依赖 |
src | 项目文件 |
.editorconfig | Editor configuration, see https://editorconfig.org |
.gitignore | http://help.github.com/ignore-files/ |
angular.json | |
browserslist | 构建系统使用此文件来调整CSS和JS输出以支持指定的浏览器https://github.com/browserslist/browserslist#queries |
karma.conf.js | Karma configuration file. https://karma-runner.github.io/1.0/config/configuration-file.html |
package.json | 项目配置文件 |
README.md | |
tsconfig.app.json | |
tsconfig.json | ts默认配置文件 |
tsconfig.spec.json | |
tslint.json | tslint默认配置文件 |
src目录下文件 | 说明 |
---|---|
app | 定义组件、服务 |
app/app.component.css | 首页样式 |
app/app.component.html | 首页内容 |
app/app.component.spec.ts | 测试 |
app/app.component.ts | 加载 app.component.html 和 app.component.css |
app/app.module.ts | 加载 app.component.ts,该文件是angularjs的根模块,告诉angular如何组装应用 |
assets/.gitkeep | 静态资源 |
environments/environment.prod.ts | 生产环境变量配置 |
environments/environment.ts | 环境变量配置 |
assets/.gitkeep | |
favicon.ico | 网站图标 |
index.html | 入口html文件 |
main.ts | 加载 ./app/app.module |
polyfills.ts | |
styles.css | You can add global styles to this file, and also import other style files 公共的css文件 |
test.ts | This file is required by karma.conf.js and loads recursively all the .spec and framework files |
app.module.ts文件 | 说明 |
---|---|
declarations | 配置组件 |
imports | 配置依赖的其他模块 |
providers | 配置服务 |
bootstrap | 指定应用的根组件 |
版权声明:本文为seaalan原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。