Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public signin(){
- return this.http.post<any>(`${env.API_URL}/user/signin`, { username: user.username, password: user.password }).toPromise();
- }
- public signin(){
- return this.http.post<any>(`${env.API_URL}/user/signin`, { username: user.username, password: user.password }).pipe(
- tap(
- data => this.customFunction(data),
- error => error
- )
- ).toPromise();
- }
Add Comment
Please, Sign In to add comment