Posts by Sérgio C. Abreu • 1 point
3 posts
-
0
votes1
answer742
viewsA: How do I get the Header of a Sponse with Angular 2+?
You could do something like: public login(email: string, password: string): Observable<User> { return this.http .post<User>(this.url, { username: email, password: password }) .pipe( tap(…
-
0
votes1
answer225
viewsA: I am trying in Angular to access Mysql data through PHP
You need to declare Servuserservice in your module providers. // ... providers: [ ServuserService ] // ... Then, as the observable ones are Lazy, you need to invoke the subscribe method to receive…
-
0
votes3
answers684
viewsA: Call database function that receives a list as parameter
You can try it like this: public interface UsuarioRepository extends JpaRepository<Usuario, Long> { List<Usuario> findByTipo(List<Integer> tipos); } And in the calls:…