SHARE
TWEET

Untitled

a guest Apr 24th, 2019 204 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. import { Component, OnInit } from '@angular/core';
  2. import { Salon } from '../model/Salon';
  3. import { s } from '@angular/core/src/render3';
  4. import { Http } from '@angular/http';
  5. import { SalonservicesService } from '../salonservices.service';
  6. import { $ } from 'protractor';
  7. import timeGridPlugin from '@fullcalendar/timegrid';
  8.  
  9. @Component({
  10.   selector: 'app-salon',
  11.   templateUrl: './salon.component.html',
  12.   styleUrls: ['./salon.component.css']
  13. })
  14. export class SalonComponent implements OnInit {
  15.   calendarPlugins = [timeGridPlugin];
  16.   constructor(private http:Http, private serv: SalonservicesService) { }
  17.   id = this.serv.id;
  18.   s;
  19.   choixsoin = "Je choisis mon soin";
  20.   table=["manucure", "brushing", "p├ędicure", "couleur"];
  21.  
  22.  
  23.   ngOnInit() {
  24.  
  25.     console.log('test jo', this.id);
  26.    
  27.     this.http.get('http://localhost:8080/salons/'+ this.id)
  28.     .subscribe(
  29.       response=>{
  30.         this.s= response.json();
  31.         console.log(this.s)
  32.       }
  33.     );
  34.   }
  35.  
  36.  
  37.   var test = function(info){
  38.   alert('Clicked on: ' + info.dateStr);
  39.   alert('Coordinates: ' + info.jsEvent.pageX + ',' + info.jsEvent.pageY);
  40.   alert('Current view: ' + info.view.type);
  41.  
  42.  }
  43.  
  44.  
  45. }
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
 
Top