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
ee30fbfc
Commit
ee30fbfc
authored
Jan 11, 2019
by
李彥志
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update assets/pic
parent
555c96b6
Changes
7
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
7 additions
and
5 deletions
+7
-5
src/app/home/dataList.const.ts
src/app/home/dataList.const.ts
+3
-1
src/app/home/home.component.html
src/app/home/home.component.html
+2
-2
src/app/home/home.component.ts
src/app/home/home.component.ts
+1
-1
src/app/p4/p4.component.html
src/app/p4/p4.component.html
+1
-1
src/assets/01d.png
src/assets/01d.png
+0
-0
src/assets/04d.png
src/assets/04d.png
+0
-0
src/assets/10d.png
src/assets/10d.png
+0
-0
No files found.
src/app/home/dataList.const.ts
View file @
ee30fbfc
export
const
dataList
=
[
{
'
city
'
:
{
...
...
@@ -31,7 +33,7 @@ export const dataList = [
'
id
'
:
800
,
'
main
'
:
'
Clear
'
,
'
description
'
:
'
sky is clear
'
,
'
icon
'
:
'
01d
'
'
icon
'
:
'
../../assets/01d.png
'
}
],
'
speed
'
:
3.37
,
...
...
src/app/home/home.component.html
View file @
ee30fbfc
...
...
@@ -93,8 +93,8 @@ cnt:<input type="number" min="1" max="7"><br>
<td
*ngFor =
"let item2 of item.weather"
>
{{ item2.description }}
</td>
<td>
<img
[src]=
'pic'
>
<td
*ngFor =
"let item2 of item.weather"
>
{{ item2.icon }}
</td>
<td>
{{ item.speed }} meter/sec
...
...
src/app/home/home.component.ts
View file @
ee30fbfc
...
...
@@ -10,7 +10,7 @@ export class HomeComponent implements OnInit {
list
=
dataList
;
pic
=
'
./01d.png
'
;
pic
=
'
.
./../assets
/01d.png
'
;
constructor
()
{
}
...
...
src/app/p4/p4.component.html
View file @
ee30fbfc
...
...
@@ -5,7 +5,7 @@
一.必須輸入大於0,若輸入小於或等於0,則alert訊息
<br>
二.只能輸入數字,若輸入欄位不符,則alert訊息
<br>
三.只能輸入英文兩碼+數字三碼,若輸入欄位不符,則alert訊息
</table>
<!-- TODO 卡在ts檔的if else語法-->
<!-- TODO 卡在
component.
ts檔的if else語法-->
<br>
欄位一 :
<input
class=
"test"
placeholder=
"輸入後請按enter"
...
...
src/a
pp/home
/01d.png
→
src/a
ssets
/01d.png
View file @
ee30fbfc
File moved
src/assets/04d.png
0 → 100644
View file @
ee30fbfc
2.71 KB
src/assets/10d.png
0 → 100644
View file @
ee30fbfc
3.7 KB
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