Posts by Leandro • 19 points
7 posts
-
0
votes0
answers30
viewsQ: Filter an array with lodash.filter
I have the array: lista = [{ 'user': 'barney', 'age': 36 }, { 'user': 'fred', 'age': 40 }]; And I want to filter the objects from what the user type into two inputs: <input nz-input…
-
0
votes1
answer70
viewsA: Problem with Antdesign icons when testing Angular application
Solved, but for those who have the same problem follows the solution: I added the Imports: import { Nziconmodule } from 'ng-Zorro-antd/icon'; import { Icondefinition } from…
-
-2
votes1
answer70
viewsQ: Problem with Antdesign icons when testing Angular application
The component I am testing uses Ant Design icons, and when running Karma tests with the 'npm run test' command the following error occurs: An error was thrown in afterall error properties: Object({…
-
1
votes1
answer614
viewsQ: Problem with CORS
I’m making a request through the Angularjs at port 3000: function _registrarNovaAposta(aposta) {return $http.post("http://localhost:8080/sga-api/apostas/nova-aposta", aposta);} to the endpoint:…
-
0
votes1
answer109
viewsA: How to download an image from Angularjs
The solution: function mostrarArquivo(arquivo) { Upload.base64DataUrl(arquivo) .then(function(response) { baixarArquivo("imagem", response); }); } function baixarArquivo(nomeArquivo, base64) { var…
-
0
votes1
answer109
viewsQ: How to download an image from Angularjs
I’m creating a feature similar to the email attachment, in which we attach files but if we want to view it to confirm the files to be sent we download. That’s where I’m having the problem function…
-
1
votes1
answer5363
viewsQ: Install JDK 8, 9 or 10 on Ubuntu 18.04
Does anyone know another way to install java in Ubuntu 18.04. I tried java 8 and 10 and gave these errors: "The oracle-java10-installer package is not available, but is referenced by another…