Changeset de18858 for Farmatiko/ClientApp/src/app/korona
- Timestamp:
- 07/29/20 19:46:21 (4 years ago)
- Branches:
- master
- Children:
- 4e72684
- Parents:
- e42f61a
- Location:
- Farmatiko/ClientApp/src/app/korona
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
Farmatiko/ClientApp/src/app/korona/korona.component.html
re42f61a rde18858 8 8 <p>статистика</p> 9 9 </div> 10 11 12 13 10 </div> 14 11 <div class="row text-center pads"> 15 12 <div class="col"> 16 13 <div class="counter"> 17 <i class="fa fa-code fa-2x" >0</i>18 <h2 class="timer count-title count-number" data-to="100" data-speed="1500"></h2>14 <i class="fa fa-code fa-2x" *ngIf="korona">{{korona.totalMK}}</i> 15 <h2 class="timer count-title count-number"></h2> 19 16 <p class="count-text ">Вкупно случаи во земјата</p> 20 17 </div> … … 22 19 <div class="col"> 23 20 <div class="counter"> 24 <i class="fa fa-coffee fa-2x" >0</i>25 <h2 class="timer count-title count-number" data-to="1700" data-speed="1500"></h2>21 <i class="fa fa-coffee fa-2x" *ngIf="korona">{{korona.activeMK}}</i> 22 <h2 class="timer count-title count-number"></h2> 26 23 <p class="count-text ">Активни случаи во земјата</p> 27 24 </div> … … 29 26 <div class="col"> 30 27 <div class="counter"> 31 <i class="fa fa-lightbulb-o fa-2x" >0</i>32 <h2 class="timer count-title count-number" data-to="11900" data-speed="1500"></h2>28 <i class="fa fa-lightbulb-o fa-2x" *ngIf="korona">{{korona.deathsMK}}</i> 29 <h2 class="timer count-title count-number"></h2> 33 30 <p class="count-text ">Смртни случаи во земјата</p> 34 31 </div> … … 36 33 <div class="col"> 37 34 <div class="counter"> 38 <i class="fa fa-bug fa-2x" >0</i>39 <h2 class="timer count-title count-number" data-to="157" data-speed="1500"></h2>35 <i class="fa fa-bug fa-2x" *ngIf="korona">{{korona.newMK}}</i> 36 <h2 class="timer count-title count-number"></h2> 40 37 <p class="count-text ">Нови случаи во земјата</p> 41 38 </div> … … 45 42 <div class="col"> 46 43 <div class="counter"> 47 <i class="fa fa-bug fa-2x" >0</i>48 <h2 class="timer count-title count-number" data-to="157" data-speed="1500"></h2>44 <i class="fa fa-bug fa-2x" *ngIf="korona">{{korona.totalGlobal}}</i> 45 <h2 class="timer count-title count-number"></h2> 49 46 <p class="count-text ">Вкупно случаи глобално</p> 50 47 </div> … … 52 49 <div class="col"> 53 50 <div class="counter"> 54 <i class="fa fa-bug fa-2x" >0</i>55 <h2 class="timer count-title count-number" data-to="157" data-speed="1500"></h2>51 <i class="fa fa-bug fa-2x" *ngIf="korona">{{korona.activeGlobal}}</i> 52 <h2 class="timer count-title count-number"></h2> 56 53 <p class="count-text ">Активни случаи глобално</p> 57 54 </div> … … 59 56 <div class="col"> 60 57 <div class="counter"> 61 <i class="fa fa-bug fa-2x" >0</i>62 <h2 class="timer count-title count-number" data-to="157" data-speed="1500"></h2>58 <i class="fa fa-bug fa-2x" *ngIf="korona">{{korona.deathsGlobal}}</i> 59 <h2 class="timer count-title count-number"></h2> 63 60 <p class="count-text ">Смртни случаи глобално</p> 64 61 </div> -
Farmatiko/ClientApp/src/app/korona/korona.component.ts
re42f61a rde18858 1 import { Component, OnInit } from '@angular/core'; 1 import { Component, OnInit, Inject } from '@angular/core'; 2 import { Pandemic } from '../models/Pandemic'; 3 import { MatTableDataSource } from '@angular/material/table'; 4 import { HttpClient } from '@angular/common/http'; 2 5 3 6 @Component({ … … 7 10 }) 8 11 export class KoronaComponent implements OnInit { 12 public korona: Pandemic; 9 13 10 constructor() { } 14 constructor(http: HttpClient, @Inject('BASE_URL') baseUrl: string) { 15 http.get<Pandemic>(baseUrl + 'Pandemic/Get?').subscribe(result => { 16 this.korona = result; 17 console.log(this.korona); 18 }, error => console.error(error)); 19 } 11 20 12 21 ngOnInit(): void {
Note:
See TracChangeset
for help on using the changeset viewer.