Posts by Gabriel Câmara • 237 points
7 posts
-
1
votes3
answers447
viewsA: How to make the content appear in the DOM only after clicking - Angularjs
You could do this in a lot of ways. I believe the simplest would be the way @Johnny Gabriel quoted it: create a control variable and change it. In your Jsfiddle code, you can see that you have added…
angularjsanswered Gabriel Câmara 237 -
1
votes3
answers1274
viewsA: Can you place an array in a Javascript variable and compare it to the value in the text field?
You can use the indexOf as follows: function contem() { var valor = document.getElementById("valor").value; var arr = ['ASD', 'DEF', 'GHI']; document.getElementById('result').innerHTML =…
-
2
votes1
answer407
viewsA: Should we avoid circular dependencies?
The best way I know of avoiding circular reference, is to create a separate module, where are the business rules that are common to one or more services. Not just leading to the world of Angular. On…
angularjsanswered Gabriel Câmara 237 -
0
votes2
answers28774
viewsA: How to check if a checkbox is javascript checked
Hello, I don’t know if I understand your question very well, but I understand that you would like there to be a check if the checkboxes are selected at the time the AJAX request arrives, that’s it?…
javascriptanswered Gabriel Câmara 237 -
1
votes2
answers585
viewsA: Compare 2 variables in a select with Angular
Hello, you can do this by using the ngSelected directive. In that Jsfiddle I created an example for you to check Editing I made an adjustment with the ngCookies module of Angularjs. I imagine when…
-
1
votes2
answers2638
viewsA: How to call a method into an If and Else?
Well, a priori I see that every time you hit the Alter Person button, you call the novaPessoa(), which, in this case, clears all fields and would not change its object. So do not call it before…
-
3
votes1
answer3825
viewsA: How to color specific lines of a Jtable?
This class should help you... Test Class public class Teste extends JFrame { private JPanel contentPane; private JScrollPane scrollPane; private JTable table; /** * Launch the application. */ public…