Ignore:
Timestamp:
07/31/20 21:01:19 (4 years ago)
Author:
DimitarSlezenkovski <dslezenkovski@…>
Branches:
master
Children:
c406ae5
Parents:
58fa654 (diff), c73269d (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge branch 'master' of https://develop.finki.ukim.mk/git/farmatiko

File:
1 edited

Legend:

Unmodified
Added
Removed
  • Farmatiko/ClientApp/src/app/counter/counter.component.ts

    r58fa654 ra6bbad1  
    1 import { Component, OnInit, ViewChild, Inject } from '@angular/core';
     1import { Component, OnInit, ViewChild, Inject, Input } from '@angular/core';
    22import { HttpClient } from '@angular/common/http';
    33import { HealthFacilities } from '../models/HealthFacilities';
     
    1313})
    1414export class CounterComponent implements OnInit {
    15   public facilities: HealthFacilities[];
     15  @Input() facilities: HealthFacilities[];
    1616  public workers: HealthcareWorkers[];
    17   displayedColumns = ['Име','Општина','Адреса', 'Тип', 'Е-пошта', 'Телефон'];
     17  displayedColumns = ['id','createdOn','deletedOn','Име','Општина','Адреса', 'Тип', 'Е-пошта', 'Телефон'];
    1818  displayedColumnsWorkers = ['Име','Гранка','Установа', 'Назив'];
    1919  dataSource = new MatTableDataSource<HealthFacilities>();
    2020  dataSourceWorkers = new MatTableDataSource<HealthcareWorkers>();
    2121
    22   @ViewChild(MatPaginator, {static: true}) paginator: MatPaginator;
     22  @ViewChild(MatPaginator, {static: false}) paginator: MatPaginator;
    2323  @ViewChild(MatSort) sort: MatSort;
    2424
     
    4141    this.dataSource.paginator = this.paginator;
    4242    this.dataSource.sort = this.sort;
    43     this.dataSourceWorkers.paginator = this.paginator;
    44     this.dataSourceWorkers.sort = this.sort;
    4543  }
    4644
Note: See TracChangeset for help on using the changeset viewer.