Skip to content
Snippets Groups Projects
Select Git revision
  • 9554d3d82721424da6a9baad764c1e6f2d7a66a9
  • master default
  • autorisation_visit
  • signup_mydata
  • format_editData
  • dev
  • authorize-valid-profile
  • feli90-patch-2
  • feli90-patch-1
  • context_sheet
  • testNewForm
  • FeliLocalTest1
  • ios-account-fix
  • change-form-link
  • dev_pages_projet
  • remise_sorties
  • release/first-users
17 results

student-charter.component.ts

Blame
  • student-charter.component.ts 701 B
    import { Component, OnInit } from '@angular/core';
    import { StaticInjector } from '@angular/core/src/di/injector';
    
    @Component({
      selector: 'app-student-charter',
      templateUrl: './student-charter.component.html',
      styleUrls: ['./student-charter.component.scss']
    })
    export class StudentCharterComponent implements OnInit {
      
    
      state:boolean;
      private studentCharterUrl = environment.apiUrl + ''; 
    
    
      constructor() { }
    
      ngOnInit() {
       
      }
    
      toggle(){
        this.state=!this.state;
      }
    
      sendStudentSignatureCharter(email: string, state:boolean) : Observable<boolean> {
        return this.http.post<any>(this.studentCharterUrl, { params: email, state }).pipe(
          map(() => true
        ));
      }
    
    }