“API -Service in Angular” Code-Antworten

API -Service in Angular

import { HttpClient } from '@angular/common/http';
import { Injectable } from '@angular/core';
import { GET_ALL_PROJECT_ROUTE } from 'src/constants';

@Injectable({
  providedIn: 'root',
})
export class ApiService {
  constructor(private http: HttpClient) {}

  getProjects() {
    return this.http.get(GET_ALL_PROJECT_ROUTE);
  }
}
Himanshu Jangid

Winkel -API -Ruhe

// APi operation
POST         
GET     
PUT 
PATCH 
DELETE
Mohamed Sami khiari

Ähnliche Antworten wie “API -Service in Angular”

Fragen ähnlich wie “API -Service in Angular”

Weitere verwandte Antworten zu “API -Service in Angular” auf TypeScript

Durchsuchen Sie beliebte Code-Antworten nach Sprache

Durchsuchen Sie andere Codesprachen