Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
AngularPractice2
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Jira
Jira
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
李彥志
AngularPractice2
Commits
69d5f255
Commit
69d5f255
authored
Jan 11, 2019
by
李彥志
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add array pic successfully + p3 practice done
parent
4bd7f716
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
19 additions
and
23 deletions
+19
-23
src/app/home/dataList.const.ts
src/app/home/dataList.const.ts
+13
-13
src/app/home/home.component.html
src/app/home/home.component.html
+1
-1
src/app/p3/imageUrl
src/app/p3/imageUrl
+0
-0
src/app/p3/p3.component.html
src/app/p3/p3.component.html
+2
-8
src/app/p3/p3.module.ts
src/app/p3/p3.module.ts
+3
-1
No files found.
src/app/home/dataList.const.ts
View file @
69d5f255
...
...
@@ -57,7 +57,7 @@ export const dataList = [
'
id
'
:
800
,
'
main
'
:
'
Clear
'
,
'
description
'
:
'
sky is clear
'
,
'
icon
'
:
'
01d
'
'
icon
'
:
'
../../assets/01d.png
'
}
],
'
speed
'
:
1.92
,
...
...
@@ -81,7 +81,7 @@ export const dataList = [
'
id
'
:
800
,
'
main
'
:
'
Clear
'
,
'
description
'
:
'
sky is clear
'
,
'
icon
'
:
'
01d
'
'
icon
'
:
'
../../assets/01d.png
'
}
],
'
speed
'
:
2.3
,
...
...
@@ -105,7 +105,7 @@ export const dataList = [
'
id
'
:
500
,
'
main
'
:
'
Rain
'
,
'
description
'
:
'
light rain
'
,
'
icon
'
:
'
10d
'
'
icon
'
:
'
../../assets/10d.png
'
}
],
'
speed
'
:
3.21
,
...
...
@@ -130,7 +130,7 @@ export const dataList = [
'
id
'
:
500
,
'
main
'
:
'
Rain
'
,
'
description
'
:
'
light rain
'
,
'
icon
'
:
'
10d
'
'
icon
'
:
'
../../assets/10d.png
'
}
],
'
speed
'
:
3.75
,
...
...
@@ -154,7 +154,7 @@ export const dataList = [
'
id
'
:
800
,
'
main
'
:
'
Clear
'
,
'
description
'
:
'
sky is clear
'
,
'
icon
'
:
'
01d
'
'
icon
'
:
'
../../assets/01d.png
'
}
],
'
speed
'
:
1.98
,
...
...
@@ -178,7 +178,7 @@ export const dataList = [
'
id
'
:
800
,
'
main
'
:
'
Clear
'
,
'
description
'
:
'
sky is clear
'
,
'
icon
'
:
'
01d
'
'
icon
'
:
'
../../assets/01d.png
'
}
],
'
speed
'
:
3.14
,
...
...
@@ -202,7 +202,7 @@ export const dataList = [
'
id
'
:
500
,
'
main
'
:
'
Rain
'
,
'
description
'
:
'
light rain
'
,
'
icon
'
:
'
10d
'
'
icon
'
:
'
../../assets/10d.png
'
}
],
'
speed
'
:
6.9
,
...
...
@@ -227,7 +227,7 @@ export const dataList = [
'
id
'
:
800
,
'
main
'
:
'
Clear
'
,
'
description
'
:
'
sky is clear
'
,
'
icon
'
:
'
01d
'
'
icon
'
:
'
../../assets/01d.png
'
}
],
'
speed
'
:
6.71
,
...
...
@@ -251,7 +251,7 @@ export const dataList = [
'
id
'
:
500
,
'
main
'
:
'
Rain
'
,
'
description
'
:
'
light rain
'
,
'
icon
'
:
'
10d
'
'
icon
'
:
'
../../assets/10d.png
'
}
],
'
speed
'
:
6.22
,
...
...
@@ -276,7 +276,7 @@ export const dataList = [
'
id
'
:
500
,
'
main
'
:
'
Rain
'
,
'
description
'
:
'
light rain
'
,
'
icon
'
:
'
10d
'
'
icon
'
:
'
../../assets/10d.png
'
}
],
'
speed
'
:
7.32
,
...
...
@@ -301,7 +301,7 @@ export const dataList = [
'
id
'
:
501
,
'
main
'
:
'
Rain
'
,
'
description
'
:
'
moderate rain
'
,
'
icon
'
:
'
10d
'
'
icon
'
:
'
../../assets/10d.png
'
}
],
'
speed
'
:
5.19
,
...
...
@@ -326,7 +326,7 @@ export const dataList = [
'
id
'
:
500
,
'
main
'
:
'
Rain
'
,
'
description
'
:
'
light rain
'
,
'
icon
'
:
'
10d
'
'
icon
'
:
'
../../assets/10d.png
'
}
],
'
speed
'
:
8.15
,
...
...
@@ -351,7 +351,7 @@ export const dataList = [
'
id
'
:
500
,
'
main
'
:
'
Rain
'
,
'
description
'
:
'
light rain
'
,
'
icon
'
:
'
10d
'
'
icon
'
:
'
../../assets/10d.png
'
}
],
'
speed
'
:
3.5
,
...
...
src/app/home/home.component.html
View file @
69d5f255
...
...
@@ -94,7 +94,7 @@ cnt:<input type="number" min="1" max="7"><br>
{{ item2.description }}
</td>
<td
*ngFor =
"let item2 of item.weather"
>
{{ item2.icon }}
<img
[src]=
" item2.icon "
/>
</td>
<td>
{{ item.speed }} meter/sec
...
...
src/app/p3/imageUrl
deleted
100644 → 0
View file @
4bd7f716
src/app/p3/p3.component.html
View file @
69d5f255
<p
style=
"color:green"
>
題三
</p>
<h4>
作業連結
</h4>
(目前在stackblitz能做出來,但用自己的電腦卻bulid不起來,無法display):
<br>
<a
href=
"https://stackblitz.com/edit/angular-cjmsgg"
>
Stackblitz
</a>
<!-- <p>
<p>
WidthLength :
<input
type=
"number"
min=
"1"
step=
"5"
[(ngModel)]=
"widthLength"
(change)=
"showPic()"
><br>
HeightLength :
<input
type=
"number"
min=
"1"
step=
"5"
[(ngModel)]=
"heightLength"
(change)=
"showPic()"
><br>
<img
[src]=
'imageUrl '
/>
</p>
-->
</p>
<router-outlet></router-outlet>
src/app/p3/p3.module.ts
View file @
69d5f255
import
{
NgModule
}
from
'
@angular/core
'
;
import
{
CommonModule
}
from
'
@angular/common
'
;
import
{
FormsModule
}
from
'
@angular/forms
'
;
import
{
P3RoutingModule
}
from
'
./p3-routing.module
'
;
import
{
P3Component
}
from
'
./p3.component
'
;
...
...
@@ -8,7 +9,8 @@ import { P3Component } from './p3.component';
declarations
:
[
P3Component
],
imports
:
[
CommonModule
,
P3RoutingModule
P3RoutingModule
,
FormsModule
]
})
export
class
P3Module
{
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment