Last active
July 2, 2018 17:44
-
-
Save asmyk/1de28e281a06e48cf05e1d9f02774198 to your computer and use it in GitHub Desktop.
This is an example angular service
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export class UsersService { | |
constructor(private http: HttpClient) { } | |
getUsers() { | |
// let's assume that we have same method names on local and prod | |
const method = "/users"; | |
return this.http.get(method); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment