Posts by Wiley Marques • 206 points
4 posts
-
2
votes2
answers67
viewsA: Angular: Controller does not find Model
As mentioned by Marcus Dacorrégio, it is not recommended to work this way. The right thing to do would be to do something like this, each in its own separate file: // app.module.js…
-
1
votes1
answer45
viewsA: How to KEEP only what was filtered in Angularjs?
You are ordering to display all items different from the amount you received. Change this line: return mercadoria.setor != zSetor; To: return mercadoria.setor === zSetor;…
-
1
votes1
answer80
viewsA: Doubt about $.post and $.ajax behavior
The method post accepts 4 parameters, according to the documentation. jQuery.post( url [, data ] [, success ] [, dataType ] ) So you can make the same call setando the data type sent as json thus:…
-
2
votes1
answer1659
viewsA: Returning callback values in main function - JS/Nodejs
One way to do this is to use a variable in funcaoPrincipal and change its value within callback: function funcaoPrincipal(){ let deuErro; funcaoCallback(function(erro) { if(erro) { deuErro = true; }…