Posts by Eduardo Ribeiro • 716 points
44 posts
-
1
votes4
answers9163
viewsA: How to refresh the screen in Angular?
Maybe you can accomplish with Session Storage even though I would do it a little differently. ngOnInit() { this.load(); } load() { const HAS_RELOAD = 'hasReload'; // Ao invés de passar a string…
angularanswered Eduardo Ribeiro 716 -
1
votes4
answers9163
viewsA: How to refresh the screen in Angular?
I faced a similar problem, to solve I put a variable in my Service, something like: export class MyService { reload = true; constructor() { } } And in my component I created the function reload that…
angularanswered Eduardo Ribeiro 716 -
1
votes1
answer194
viewsA: Refresh token requests delayed
In my case I know that the token is expired or invalid only after I performed the request, so I had to deal with in a catchError, in my case we use rolling token, so I have to update every request…
-
3
votes1
answer198
viewsA: My carousel button stopped working when I uploaded the images
Your mistake is on that line <div id="carouselExampleIndicators slides" class="carousel slide" data-ride="carousel"> Just remove the slides of id of div. Just let the…
-
1
votes2
answers51
viewsA: Lazy-Loaded and angular charging shapes
Basically the first form is the old one that we used until the Angular 7 and the second is the new form introduced in Angular 8. The second one turns out to be more reliable, because your IDE can…
-
2
votes1
answer56
viewsA: How do I pass a variable in an id field in html?
Try doing it this way <ion-checkbox [id]="photo.id" color="primary"></ion-checkbox>
-
2
votes1
answer73
viewsQ: Input does not take the file type
In my application I have a simple input to grab a file XLS on most computers it works normally, but in some it is with problem. The browser ends up not being able to catch the type of the file and…
-
0
votes1
answer134
viewsA: Problem in image size validation
I was able to solve this problem by adding onload in the image also, nor did he know that this method existed on the type object Image, in the end only the method readerFile was modified and ended…
-
0
votes1
answer134
viewsQ: Problem in image size validation
In my application I make a preview of the image, this part is ok, but the client wants to validate the dimensions before the upload. At first it would also be ok, if it were that in a few moments…
-
1
votes2
answers4619
viewsQ: How to get back app version in App Store?
I uploaded a version of an App recently with several modifications to App Store (IOS), unfortunately a bug went on the air, so the best solution at the moment is to return to the latest stable…
-
0
votes1
answer181
viewsQ: How to view Git statistics with Bitbucket?
I’ve already used the Github and the Gitlab for a long time. These platforms are rich in statistics, from user contributions, commit frequency, etc. But now I’m part of a Bitbucket, but I haven’t…
-
0
votes2
answers65
viewsA: How to change text type in a list with Jquery?
That’s what you want to do, you get it with CSS even, you don’t need JS. Just add these lines to your CSS #conteudo:hover { text-decoration: underline; background-color: #999; } The magic is on the…
-
3
votes2
answers438
viewsA: Conditional VUE array count
You can do something like let meuArray = [ { "name": "Quero Vender", "active": false }, { "name": "Quero Comprar","active": false }, { "name": "Quero Tudo","active": true }, { "name": "Quero…
javascriptanswered Eduardo Ribeiro 716 -
0
votes1
answer120
viewsA: Place an IF inside HTML text with Ionic/firebase
Try to do something like. <ion-item class="camposSelect" *ngFor="let person of profiles" > <ion-label color="primary">Dia: </ion-label> <ion-select [(ngModel)]="ficha.teste"…
-
0
votes1
answer47
viewsA: Hyperlink error HTML code
You’re putting something kind of weird on href, try to put the address, for example, let’s assume that your site is https://example.com and you have the fan page, you would do something like this…
-
1
votes1
answer150
viewsQ: Multiple applications consuming the same database
Today I have an application that uses a database (Mongodb), but I have few users yet and as we know it is very difficult to have an application that is successful and accumulates many users.…
-
1
votes1
answer164
viewsA: How to search a JSON registry with Angular 2x?
Whoa, that’s all right? You can use the filter, it returns the Array item that satisfies a condition, you can see more here Follow the shape I made const jogadores = [ { id: '1', jogador: { nome:…
angularanswered Eduardo Ribeiro 716 -
1
votes1
answer818
viewsA: html javascript list json data in <ul> <li>
From what I understand you will receive a JSON object and want to display it within a list, correct? So you can do something like. let nomes = document.getElementById('nomes') const listaNomes = [ {…
-
1
votes2
answers906
viewsA: Place images on top of links
You can do it this way .imageSumida { display: none; } .hoverImage:hover ~ .imageSumida { display: block; } <a href="http://google.com" target="_blank" class="hoverImage">Uma imagem deve…
-
2
votes4
answers81
viewsA: Query with Javascript
Hello, all right? I’d do it this way let vaga = {"language":"javascript","courses":["information systems","programming"]} let candidatos = […
javascriptanswered Eduardo Ribeiro 716 -
-1
votes1
answer1118
viewsA: Curl extension does not work?
I was having this error, to fix it I made the following steps; Check whether your php.ini is returning an error when you start a server (Example: php -S localhost:8080), if you have corrected it.…
-
0
votes2
answers34
viewsA: Refresh page when deleting
To refresh the page you can use function ConfirmDelete() { location.reload(); return confirm("Tem certeza de que deseja excluir esta Requisição?"); } Maybe this will solve your problem if you just…
-
2
votes2
answers262
viewsA: I need help with that ES6 code
I did it this way, take a look if it helps you const meusDados = [ { "name":"JONAS", "languages":["php","javascript","java"], "age":37, "graduate_date":1044064800000, "phone":"32-987-543" }, {…
-
7
votes1
answer4432
viewsQ: How to create Javascript interface?
I believe most of you know the concept of Interface, fairly widespread in POO, but in Javascript in all projects I worked until today I have not seen use of this concept. I did some research on, but…
-
0
votes3
answers799
viewsA: How to center image to text?
I entered the following code in the tag img and almost solved his problem, just not very well centralized; ... img { width:100px; height: auto; padding: 5px; /* Código para centralizar a imagem */…
-
1
votes2
answers449
viewsA: ngFor inside ngFor does not work
From what I understand you are wanting to access the objects of the following type: ... { "id": 59, "name": "Programa 2", "base_Url": "https://google.com", "active": true, "menu_id": 2 }, ... To…
angularanswered Eduardo Ribeiro 716 -
0
votes1
answer83
viewsA: Creation of JSON with numeral
Is it really necessary to name the object as 200? I believe that objects cannot start with number, hyphenate or special character. Maybe the ideal would be for you to call it status200 or S200,…
-
3
votes2
answers11465
viewsA: Insert Image via CSS or HTML?
Grossly. When you put the image directly into HTML it is somewhat "registered" in search engines, as in Google, so users can find you through Google Images, and it is easier for your users to…
-
3
votes3
answers660
viewsA: Search JSON values for multiple keys
I did it this way, according to what I understood of the question, if it got something obscure comment here below that I help you. let meuJSON = { "$SP": { "0": "92", "1": "00:01:36.340", "2":…
-
1
votes1
answer74
viewsA: Remove duplicate values from a javascript array without the filter function?
I just saw the mistake you made, you created an endless loop in the second for you compared i instead of j, substitute: for (var j = 1; i < arr.length; j++) { For: for (var j = 1; j <…
javascriptanswered Eduardo Ribeiro 716 -
4
votes2
answers3839
viewsA: How to remove a Key from a JSON
In javascript you could do it as follows, assuming the following code: let meuObjeto = {"id": 1, "preco": 100, "detalhe": "nenhum"} delete meuObjeto.detalhe Or delete meuObjeto["detalhe"] Now if…
-
2
votes1
answer88
viewsQ: Classes, Mixins or the Two?
Currently in my projects I started using Classes in JS, especially in cases related to a specific element, for example the User, all requests HTTP or methods related to it I usually isolate in two…
-
0
votes2
answers81
viewsA: How to execute a function whose name is in the database?
In order to do this you can create a class and use as follows; If she’s in your filing cabinet or properly imported, you can call it minhaClasse.['nome_coluna']() or this.['nome_coluna'](), will…
-
0
votes1
answer38
viewsA: Roboto-Woff error
Yes, it is related to Fonts. I tried to play the error here on my machine, but here it did not occur, the only change I made was to change the materialize the location of a CDN, as you also did and…
web-applicationanswered Eduardo Ribeiro 716 -
0
votes1
answer137
viewsA: Problem with *ngIf: Cannot read Property 'indexvariacaoatributo' of Undefined
I believe the problem is not in indexvariacaoatributo, is probably in the listAtributos[i], who for some reason is undefined in some element. Try this, maybe it will solve: <ng-container…
angularanswered Eduardo Ribeiro 716 -
1
votes3
answers57
viewsA: Map two arrays and delete item not found
The error in your code is in the comparison, I believe that if you change the <= for >= will work, the indexOf returns the position of the element in the array when it exists and returns -1…
-
2
votes1
answer60
viewsA: How do I store all the values traveled by for in a variable?
You can store in an array let descricoes = [] for(i = 0; i < results.rows.length; i++){ $('.chips').material_chip({ data: [ { tag: results.rows.item(i).descricao }, ] }); // Aqui eu preencho o…
-
0
votes2
answers916
viewsA: Hide widget with Angularjs
I think with css you can solve, you can add a class along with the help-block or use it (depending on your usefulness in the application, this may not be interesting) try something like; .help-block…
angularjsanswered Eduardo Ribeiro 716 -
1
votes1
answer22
viewsA: Strapi freezes when selecting the database
Guys, for some mysterious reason, the command strapi new nome_projeto didn’t work for me using the CMD nor the Power Shell, but while trying to Git Bash it executed normally. So if someone goes…
-
0
votes2
answers797
viewsA: People my code keeps giving the error: Notice: Undefined variable: connects in C: xampp htdocs network profile.php on line 25
This variable $conecta seems to me to have no value assigned to her, put a $conecta = mysqli_connect("localhost","my_user","my_password","my_db");, and see if the bug has been fixed. Note: Don’t…
-
0
votes1
answer22
viewsQ: Strapi freezes when selecting the database
Today I decided to venture with the CMF Strapi, I followed several tutorials, but it always freezes on the part of selecting the bank, even if I start the banks. Mongo initiated Time Strapi stops…
-
0
votes1
answer143
viewsA: Display an alert box when loading the page
Good morning, all right? I’m sorry if I’m wrong, but I believe it’s using the ngOnInit, you can do it this way; Go to the file ts of its component and add ngOnInit method ngOnInit () { alert…
-
1
votes2
answers64
viewsA: Why doesn’t the loop print up to the last value that was entered as the limit?
As stated above, the problem is in the comparison operator, just replace the < for <=. I believe that maybe you are starting in Javascript, if yes, cool guy, you started in an interesting way,…
-
0
votes6
answers4771
viewsA: How to use Materialize side-Nav?
Here was bugging too, I decided taking the anchor of action from inside the Nav, mine was like this. <nav> <div class="nav-wrapper grey darken-1"> <a href="#!"…