-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathapp.component.html
More file actions
33 lines (26 loc) · 833 Bytes
/
Copy pathapp.component.html
File metadata and controls
33 lines (26 loc) · 833 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
<div class="container">
<div class="row">
<div class="col">
<h1>The Star Wars Search</h1>
<br>
<app-search-form></app-search-form>
<br>
<div *ngIf="isLoading" data-test="app-loading">Loading...</div>
<div *ngIf="isNotFound(searchResult, isLoading)" data-test="app-notfound">Not found.</div>
<div *ngIf="!isLoading">
<div *ngIf="searchType === 'people'">
<div *ngFor="let character of searchResult">
<app-character [character]="character"></app-character>
<br>
</div>
</div>
<div *ngIf="searchType === 'planets'">
<div *ngFor="let planet of searchResult">
<app-planet [planet]="planet"></app-planet>
<br>
</div>
</div>
</div>
</div>
</div>
</div>