feat: add users components

- Add Users component
- Add View Users component

Fixes: #484
This commit is contained in:
punwai
2019-12-23 06:41:43 +05:30
committed by Jivjyot Singh
parent 7357a1fb4c
commit 6b250f081a
10 changed files with 281 additions and 1 deletions
+28
View File
@@ -0,0 +1,28 @@
/** Angular Imports */
import { Injectable } from '@angular/core';
import { HttpClient } from '@angular/common/http';
/** rxjs Imports */
import { Observable } from 'rxjs';
/**
* Users service.
*/
@Injectable({
providedIn: 'root'
})
export class UsersService {
/**
* @param {HttpClient} http Http Client to send requests.
*/
constructor(private http: HttpClient) { }
/**
* @returns {Observable<any>} Users data
*/
getUsers(): Observable<any> {
return this.http.get('/users');
}
}