diff --git a/src/app/app-path.const.ts b/src/app/app-path.const.ts index 8447907447626ef4a906c5e25ab53e224be24c0b..d2f6e5f1b98abcd55f265fd668e40737f87a00e1 100644 --- a/src/app/app-path.const.ts +++ b/src/app/app-path.const.ts @@ -4,6 +4,8 @@ export const appPath = { p2: 'p2', - p3: 'p3' + p3: 'p3', + + p4: 'p4' }; diff --git a/src/app/app-routing.module.ts b/src/app/app-routing.module.ts index 93e840832e03ea4d1132c382134b43db35f9dcfa..d22388f42dfcc98bdc4705d11f4c03983674721a 100644 --- a/src/app/app-routing.module.ts +++ b/src/app/app-routing.module.ts @@ -14,6 +14,10 @@ const routes: Routes = [ { path: appPath.p3, loadChildren: './p3/p3.module#P3Module' + }, + { + path: appPath.p4, + loadChildren: './p4/p4.module#P4Module' } ]; diff --git a/src/app/app.component.html b/src/app/app.component.html index d2f19ee389be2c520309193534d59ebda4069d5e..3e5b28eeedf0764677cdc0699eb5fdd7b6c6d6e3 100644 --- a/src/app/app.component.html +++ b/src/app/app.component.html @@ -4,6 +4,7 @@
題一
+關於這一題我看了很多網站但還是解決不出來,我分別在iT邦幫忙和stackOverflow提問
+ stackoverflow
+
iT邦幫忙
+
,照著他們的解答我依舊無法解決問題十分抱歉
+
我認為問題點在於我無法將associative array插進第二個table裡面(第一個table可以),我嘗試過使用
+*ngFor *ngif並用、
+ng-container
但依舊無法,請bass姐賜教
+
icon | -||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
- {{item.list_.dt}} + | ||||||||||||||||
+ {{ l.dt * 1000 | date:'yyyy-MM-dd hh:mm:ss'}} | - {{item.list_.temp.day}} °C + {{ l.day }} °C | - {{item.list_.temp.min}} °C + {{item.list_}} °C | - {{item.list_.temp.max }} °C + {{item.list_ }} °C | - {{item.list_.temp.night }} °C + {{item.list_ }} °C | - {{item.list_.temp.eve }} °C + {{item.list_ }} °C | - {{item.list_.temp.morn }} °C + {{item.list_ }} °C | - {{item.list_.pressure}} hpa + {{item.list_}} hpa | - {{item.list_.humidity}} % + {{item.list_}} % | - {{item.list_.weather.id }} + {{item.list_ }} | - {{item.list_.weather.main }} + {{item.list_ }} | - {{item.list_.weather.description }} + {{item.list_ }} | - {{item.list_.weather.icon }} + {{item.list_ }} | - {{item.list_.speed}} meter/sec + {{item.list_}} meter/sec | - {{item.list_.deg}} ° + {{item.list_}} ° | - {{item.list_.clouds}} % + {{item.list_}} % | - {{item.list_.rain}} + {{item.list_}} | -
題二
+尚未將刪除功能做出、隱藏及加總功能也還沒,十分抱歉