Projekt

Obecné

Profil

« Předchozí | Další » 

Revize 2b790e00

Přidáno uživatelem Ondřej Váně před více než 4 roky(ů)

Re #7726: Implementace architektury FE

- implementace metody pro získání všech dokumentů z BE
- implementováno basic view pro stránku Browse

Zobrazit rozdíly:

fe/fulltextsearch/src/app/components/pages/browse/browse.component.ts
1 1
import { Component, OnInit } from '@angular/core';
2
import {DocumentResponse} from '../../../model/DocumentResponse';
3
import {QueryService} from '../../../services/query.service';
2 4

  
3 5
@Component({
4 6
  selector: 'app-browse',
......
6 8
  styleUrls: ['./browse.component.css']
7 9
})
8 10
export class BrowseComponent implements OnInit {
11
  documents: DocumentResponse[] = null;
9 12

  
10
  constructor() { }
13
  constructor( private queryService: QueryService ) { }
11 14

  
12 15
  ngOnInit(): void {
16
    this.queryService.getDocuments().subscribe( documents => {
17
      this.documents = documents;
18
    });
13 19
  }
14 20

  
15 21
}

Také k dispozici: Unified diff