Skip to content

必須要件分(API呼び出し以外)の実装#1

Open
tomori-k wants to merge 17 commits intomainfrom
feature/necessary
Open

必須要件分(API呼び出し以外)の実装#1
tomori-k wants to merge 17 commits intomainfrom
feature/necessary

Conversation

@tomori-k
Copy link
Copy Markdown
Owner

@tomori-k tomori-k commented Feb 27, 2024

API 呼び出し以外の部分の必須要件の機能を実装しました。
見た目の調整はまだです。
追記:API呼び出し部分も実装しました。

Copy link
Copy Markdown

@h-oikawa-jp h-oikawa-jp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

NextbeatのAngularプロダクトではRxjsやNGXSがよく使われています。
余裕があればこれらのライブラリを用いてStoreなどの状態管理を実装してみて下さい。

参考) https://qiita.com/aqlwah/items/c947ed3aa74625854ea9

})
export class TodoCategoryService {
public async getAll(): Promise<TodoCategory[]> {
const response = await fetch('http://localhost:9000/todo-category/list', {
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

http://localhost:9000/

実際のプロダクトではAPIサーバのドメインはproductionやstagingなど環境ごとに変わる場合が殆どです。
こういった値はconfigや環境変数で一律切り替えられるようコーディングして下さい。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants