I have developed web app using Angular with backend Laravel. but in my Angular page did not display backend data. I have following data.service.ts
import { Injectable } from '@angular/core';
import { HttpClient } from '@angular/common/http';
@Injectable({
providedIn: 'root'
})
export class DataService {
constructor(private httpClient:HttpClient) { }
getData() {
return this.httpClient.get('http://127.0.0.1:8000/api/employees');
}
}
but I got flowing error message
expected onespace after colon in parameter (typedef-whitespace)
missing whitespace (whitespace)
expected call-signature: 'getData' to have a typedef (typedef)
How could I fix this?
from Newest questions tagged laravel-5 - Stack Overflow https://ift.tt/3sIjb30
via IFTTT
Aucun commentaire:
Enregistrer un commentaire