Coggle requires JavaScript to display documents.
文字
全站共用的元件
app
Pi
Component
region.page.ts | html | css
app - 24h
pages
Onsale/瘋殺特賣
components
Module
hp_onsale.page.ts | html | css
Prod/單品
region
Sign/路標
store_list
Store/館
Sign
Replenish
Enterprice/企業登入
hp.page.ts | html | css
Module.ts
Login/登入
services / 服務元件
cutprice
【公告】有更好的命名或是延伸可直接寫在旁邊討論或是用分隔線列出(A/B/C/D/)以此類推
Region/區頁
Hito/搶購活動
核心模組
hp
checkout_receipt
prod
checkout_customer
hp_onsale
結構規劃兩種版本
loader/加載
共用模組
sign.page.ts | html | css
store.page.ts | html | css
sign
Travel
replenish
nav_cutprice
頁面共用的元件
navbar/選單
error-code/錯誤頁面
region_onsale.page.ts | html | css
Mitch
store_grid.page.ts | html | css
Onsale
Login
sign_onsale.page.ts | html | css
nav_replenish
store_grid
checkout_payment
pipe / 管線元件
store
通常會是跟業務邏輯相關的程式
region_onsale
sign_onsale
prod_onsale
各頁面模組
captcha/驗證
Core/核心Shared/共享Home/平台功能Checkout/結帳功能Member/會員功能EDM/活動功能
src
Credit_card
Block
路由守門員
Catalog
Ecvdr_credit
assets
interceptors
payment_qrcode/行動支付
Double11
指定 app.routing.ts 中要 lazy load 的路由 (routes)
Lightbox
建立 Component 路由文件
traded
Account/我的帳號
活動
button/按鈕
tabs/標籤
CoBrander/點數管理
活動1
header
Inquire ⚠/折價券
header_other
未來要擴展會不會比較好管理?
payment_qrcode
https://ithelp.ithome.com.tw/articles/10247953
實作相依注入
Insurance
https://ithelp.ithome.com.tw/articles/10187200
2020_Insurance
Inquire/折價券
所有頁面都有元件文字
QA/常見問題
針對[頁面區塊],為獨立資料夾
Cobrander/PChome聯名卡管理
2021_Insurance
viewevent
header_member
result/結帳完成
paginator/頁碼
服務與依賴注入
captcha
Purchaselistv採購明細
toastj/短訊息
Main
Note. 在每個頁面各自 import 需要的 module
repayment
HTML/CSS/TS
Insurance_Chubb
icons/圖示
Activity
checkout/結帳頁
rating-star/等級星號
轉換資料格式
models
[導覽]
與父層相同名稱的屬性,皆為預設值
Auth/認證
prod_onsale.page.ts | html | css
footer
footer/預設
checkout_payment.page.ts | html | css
Order/交易紀錄
Note. 在每個頁面都有獨立的 module 和頁面 component
服務與依賴注入 ⁉
服務 service
Digi
Billing/各期帳單查詢
https://ithelp.ithome.com.tw/articles/10247058
Voucher/企業贈送券
Insurance_Tmnewa
導覽分頁
Auth ⚠/認證
Insurance_seano
QA
Announce/訂單查詢
header_EDM
form/表格
Insurance_Cathay
checkout
調整要被 lazy load 的 module 的內容
Beauty
Credit/採購額度
header/預設
3C
Member/採購帳號管理
Voucher
GO TOP
未來頁面越複雜會需要各自共用的元件?
Ce
replenish.page.ts | html | css
Daily
withdrawal
paginator
Voucher ⚠/企業贈送券
Coupon_search
Account
Bank
Life
Coupon_list
verification
https://biiyoyo.com/post/angular/angular-structure/
checkout_customer.page.ts | html | css
系統忙碌中
Live
checkout_receipt.page.ts | html | css
loan
https://ithelp.ithome.com.tw/articles/10218785
參考資料
BII Yo Yo - Angular 專案結構規劃How to Structure Angular Apps in 2021Angular 小學堂(四之一)
form
當一個網站包含的東西越多,開啟的速度也會越慢
tabs
loader_系統忙碌中
icons
Lightbox01
可觀察物件的攔截器
button
Coin/P幣
CoBrander ⚠/點數管理
存放資料與邏輯
boxman_teammate/神隊友
header_replenish
header_cutprice
活動3
store_list.page.ts | html | css
cutprice.page.ts | html | css
實作 Lazy Loading?
application
collection
guard
解決頁面載入速度的問題
rating-star
prod.page.ts | html | css
loader_Invoice[now]Await_Invoice
會員載具歸戶作業處理中
Note. 一個或一小群的 components 封裝成一個 module
Angular 專案結構規劃參考
活動2
僅在[功能]或[導覽]下才唯有一個module有[導覽]則功能就不會在有一個module.ts
result
靜態的資源檔 (eg. JavaScript、JQuery、CSS、Images)
P_Coin
loader
icons, ...etc.
member_clause.page.ts | html | css
https://ithelp.ithome.com.tw/articles/10209562
父元件
member_info.page.ts | html | css
alert/警告
member_info
member_login.page.ts | html | css
路徑定義檔 → 規劃專案的路由設定
images
子元件
member_deposit
透過 api 取得的 .json 資料
LOGO/企業標誌
首頁 hp''
Lightbox02
layout.css
reset.css
入口應用配置端點 app configurations, 管道pipes, HTTP 攔截interceptors, 防止任意存取 guards, 服務 service,等等
目前路由規劃
member_deposit.page.ts | html | css
styles.css
Lightbox03
style.css
熱銷補貨頁 replenish'replenish'
全站共用樣式檔
可以透過 Input() 去調整細微樣式? (從 parent 傳給 child)
data
member_clause
icons.css
member_login
import other style files
最新降價頁 cutprice'cutprice'
LOGO
tooltip
商品功能頁
CONTENT
block_w
nav
類別
品牌項目
品牌(link)
全部商品(link)
block_c
product
降價
Tooltips info
price主要價格網路價/網路價
商品名稱(link)
商品圖(link)
page
頁碼、上下頁(link)
頁數資訊
block_s
go_top(link)
HEADER
24h Logo
title(最新降價專區/熱銷補貨到商品)
FOOTER