SHARE
TWEET

Untitled

a guest Apr 14th, 2018 64 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. import { Component, OnInit, Input } from '@angular/core';
  2. import { ActivatedRoute, Router } from '@angular/router';
  3. import { Subscription } from 'rxjs/Subscription';
  4. import { AuthService } from '../../services/auth.service';
  5. import { HttpClient } from '@angular/common/http';
  6. import { ToastrService } from 'ngx-toastr';
  7. import { BsModalRef } from 'ngx-bootstrap';
  8.  
  9. @Component({
  10.   selector: 'app-delete-animal',
  11.   templateUrl: './delete-animal.component.html',
  12.   styleUrls: ['./delete-animal.component.scss']
  13. })
  14. export class DeleteAnimalComponent implements OnInit {
  15.  
  16.   sub : Subscription;
  17.   public animalId: String;
  18.   public user = { id: '', email: '', name: '', role: '' };
  19.  
  20.  
  21.   constructor(public bsModalRef: BsModalRef, public authService: AuthService, private activeRoute: ActivatedRoute, private http: HttpClient, private toastr: ToastrService, private router: Router) { }
  22.  
  23.   ngOnInit() {
  24.  
  25.     this.deleteAnimal();
  26.      
  27.   }
  28.  
  29.   deleteAnimal(){
  30.     console.log("Animal IDDDD: ", this.animalId);
  31.   }
  32.  
  33. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top