Posts by cezar • 308 points
10 posts
-
1
votes1
answer40
viewsA: How to ensure completion of an angular.js process
According to the comment, your problem can be solved as follows: enviaImpressao = function (impressor) { // Imprime etiquetas de Caixa ImprimeEtiquetaService.enviaParaImprsessao ( numeroCaixa, "BOX"…
-
0
votes1
answer242
views -
1
votes1
answer165
viewsA: Delete with sub-query IN SQL
In your subselect, you should remove TOTAL, your query should look like this: DELETE FROM PROGRAMAS WHERE ID_GERAL IN (SELECT ID_GERAL FROM PROGRAMAS WHERE Programa LIKE '%BEM ESTAR%' AND Programa…
-
1
votes1
answer130
viewsA: Keyholder.getKey() can return null - Spring Boot Jdbctemplate
The question is old, but as I’ve been through this problem recently, there goes: What happens is that a Number variable (or any other wrapper Integer, Long, Double, etc...) can receive a null value,…
-
0
votes2
answers983
viewsA: How to return all elements of the Angular array
Hi, Assuming your code is correct (which I’m in doubt), you could make the following change, maybe it works: showChildModal3(Candidato: Candidato) {…
-
1
votes4
answers97
viewsA: Change image by clicking on radio input
You can implement as follows: creates a new javascript function: function changeDefault(){ document.querySelector("#feliz").src = 'https://i.imgur.com/wGe2gWl.png';…
-
0
votes1
answer168
viewsA: Access token storages (JWT token)
For ease, I prefer the localStorage, however Cookies are better options for security reasons, e.g.: it is possible to configure so that it is only sent in the Ajax requests without the possibility…
-
1
votes0
answers132
viewsQ: What is the best way to maintain status between routes with Angular?
I have a search screen where I have some filters, after I have done the filters, I can click on the records and go to a "details" screen and then I can edit or go back to the search screen. What is…
-
1
votes2
answers159
viewsA: How to access a variable within ngAfterViewInit() in Angular
To simply solve your problem, you can do so: export class BlaComponent { public motivo: any; ngAfterViewInit() { const self = this; let motivo: string = 'blz'; this.bla.x(this.fazAlgumaCoisa(motivo,…
-
2
votes2
answers1104
viewsA: Best Way to Perform Dependency Injection on Angular JS
I usually separate my modules by Features, in each Feature I put their dependencies and after that I put Feature as dependency of the main module. A suggestion is to take a look at the styleguide of…