SHARE
TWEET
Untitled
a guest
Apr 14th, 2018
64
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
- import { Component, OnInit, Input } from '@angular/core';
- import { ActivatedRoute, Router } from '@angular/router';
- import { Subscription } from 'rxjs/Subscription';
- import { AuthService } from '../../services/auth.service';
- import { HttpClient } from '@angular/common/http';
- import { ToastrService } from 'ngx-toastr';
- import { BsModalRef } from 'ngx-bootstrap';
- @Component({
- selector: 'app-delete-animal',
- templateUrl: './delete-animal.component.html',
- styleUrls: ['./delete-animal.component.scss']
- })
- export class DeleteAnimalComponent implements OnInit {
- sub : Subscription;
- public animalId: String;
- public user = { id: '', email: '', name: '', role: '' };
- constructor(public bsModalRef: BsModalRef, public authService: AuthService, private activeRoute: ActivatedRoute, private http: HttpClient, private toastr: ToastrService, private router: Router) { }
- ngOnInit() {
- this.deleteAnimal();
- }
- deleteAnimal(){
- console.log("Animal IDDDD: ", this.animalId);
- }
- }
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.
