angular-ddd:在Angular中使用DDD的示例

时间:2021-05-14 12:38:39
【文件属性】:
文件名称:angular-ddd:在Angular中使用DDD的示例
文件大小:16KB
文件格式:ZIP
更新时间:2021-05-14 12:38:39
TypeScript 域驱动角 这个应用程序是一个非常简单的演示,即使在诸如Angular之类的前端技术中,也演示了如何进行域驱动设计。 之前:控制器中的业务逻辑 /* app.component.ts */ // HttpClient is injected into the constructor constructor(private http:HttpClient) { } // HttpClient fetches users ngOnInit() { this.http.get('https://reqres.in/api/users') .subscribe((data: Page) => this.page = { ...data }); } 之后:域驱动的方法 /* app.module.ts */ import { UserRe
【文件预览】:
angular-ddd-master
----.gitignore(516B)
----e2e()
--------app.e2e-spec.ts(289B)
--------app.po.ts(208B)
--------tsconfig.e2e.json(194B)
----package.json(1KB)
----tslint.json(3KB)
----src()
--------app()
--------assets()
--------tsconfig.spec.json(302B)
--------main.ts(336B)
--------test.ts(1KB)
--------tsconfig.app.json(209B)
--------environments()
--------index.html(300B)
--------favicon.ico(5KB)
--------styles.css(80B)
--------typings.d.ts(104B)
--------polyfills.ts(2KB)
----karma.conf.js(1KB)
----tsconfig.json(385B)
----README.md(1KB)
----.angular-cli.json(1KB)
----protractor.conf.js(722B)
----.editorconfig(245B)

网友评论