Advertisement
Guest User

Untitled

a guest
May 23rd, 2018
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.54 KB | None | 0 0
  1. dodajObvestiloBaza(data) {
  2.  
  3. if (data.kraj || data.vremenski_pojav || data.operator || data.temperatura || data.obvestilo) {
  4. var Vreme = {
  5. "kraj": data.kraj,
  6. "vremenski_pojav": data.vremenski_pojav,
  7. "operator": data.operator,
  8. "temperatura": data.temperatura,
  9. "obvestilo": data.obvestilo
  10. };
  11.  
  12. this.obvestiloService.dodajObvestilo((Vreme)).subscribe(data => {
  13. this.data.push(data.novobv);
  14. this.navCtrl.pop();
  15. });
  16. } else {
  17. return false;
  18.  
  19. }
  20. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement