Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- dodajObvestiloBaza(data) {
- if (data.kraj || data.vremenski_pojav || data.operator || data.temperatura || data.obvestilo) {
- var Vreme = {
- "kraj": data.kraj,
- "vremenski_pojav": data.vremenski_pojav,
- "operator": data.operator,
- "temperatura": data.temperatura,
- "obvestilo": data.obvestilo
- };
- this.obvestiloService.dodajObvestilo((Vreme)).subscribe(data => {
- this.data.push(data.novobv);
- this.navCtrl.pop();
- });
- } else {
- return false;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement