Posts by Eduardo Candido • 35 points
11 posts
-
0
votes1
answer23
viewsA: ERROR Nullinjectorerror: R3injectorerror(Dynamictestmodule)[Kdsdialogservice -> Matdialog -> Matdialog]: Nullinjectorerror: No Provider for Matdialog
He is complaining about a Preview you use in the Kdsdialogservice class and when creating the component in the test you are passing Matdialogmodule as import when it should be an item of the…
-
0
votes2
answers62
viewsA: Angular - Array calling only first item
You are stopping the repeat loop on the first index since you have a Return that for the execution of the for. After removing Return will calculate the total value, you could do so: let valorTotal:…
-
1
votes6
answers2251
viewsA: Remove all elements from an array that already exist in another
You can use this function copiarObjeto(original){ var copia = original instanceof Array ? [] : {}; for (let i in original) { if (original[i] && typeof original[i] == 'object') copia[i] =…
-
0
votes3
answers781
viewsA: How to view the data of the last saved record in the database
to sort by last record you can select order by desc Example select * from tabelaExemplo order by tabelaExemplo_id desc To take only the last bank record you can do so: select * from tabelaExemplo…
-
0
votes1
answer75
viewsA: @media coming into conflict
You are using min-width: for example a device with 1500px resolution will enter all previous validations, example min-width: 700px, min-width: 1200px, etc. You can arrange this in two ways using…
-
-2
votes1
answer38
viewsA: Problems to add products to the page with a form without giving refresh!
While running the php code will process the page, you have to make an ajax query and then refresh the page, not to lose the data write them in the Storage location before updating and grab soon…
-
2
votes2
answers608
viewsQ: Take the smallest value of an object array
I have this array of objects, how can I make to return the object with the lowest value in currentTasks "programmers":[ { "id": 1, "name": "Eduardo Candido", "currentTasks": 1 }, { "id":2, "name":…
-
0
votes3
answers73
viewsQ: Error in jQuery animation
<script> function moverFoto(){ $('#janela').animate({left:"-200"},1000); } $( function(e) { setInterval(moverFoto,500); }); </script> setInterval only runs once and to…
jqueryasked Eduardo Candido 35 -
0
votes1
answer18
viewsQ: I need to know how to pass value to Dates() functions in Javascript preference spend minutes
I need to know how to pass value to Dates() functions in Javascript preference spend minutes? <html> <head> <title>contagem regressiva</title> </head> <body>…
-
-10
votes1
answer1305
viewsQ: Help for a Javascript exercise with for...of and Join()
Given the following object array: var usuarios = [ { nome: 'Diego', habilidades: ['Javascript', 'ReactJS', 'Redux'] }, { nome: 'Gabriel', habilidades: ['VueJS', 'Ruby on Rails', 'Elixir'] } ]; Write…
javascriptasked Eduardo Candido 35 -
-1
votes2
answers4035
viewsQ: function displaPar() in JS
function exibePar(n1,n2){ while(n1<=n2){ if((n1%2)==0){ var par = n1 } n1++ } } console.log(exibePar(0,20)) My code is not showing all pairs it only shows 0.…
javascriptasked Eduardo Candido 35