aboutsummaryrefslogtreecommitdiff
path: root/sandbox/TestTamara/FRONT/Ski/src/app/app.component.ts
blob: c7c8e21d36fd2abef5359f56c457bb2b41ea4b36 (plain) (blame)
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
import { Component,OnInit } from '@angular/core';
import { UcitajService } from './ucitaj.service';
import { NgModule } from '@angular/core';

@Component({
  selector: 'app-root',
  templateUrl: './app.component.html',
  styleUrls: ['./app.component.css']
})

export class AppComponent implements OnInit {
  poruka:string='';
  title:string='Ski';
  constructor(private servis: UcitajService) { }


   
  
  ngOnInit() :void {
    this.servis 
      .dajPoruku()
      .subscribe((poruka2 : string) => {this.poruka = poruka2;
      });
  }
}