Questions tagged as 'javascript'

0
answers

Problem with angular service method

I have two methods in my angular service .. which are: app.service('entidade', function($http) { this.getEntidade = function() { return $http({url:'/user/entidades', method : 'GET', async:false}).then(function(response) {...
asked by 06.04.2018 / 16:22
1
answer

Angular FormGroup

Hello, I'm new to angular and would like to know how I use more of an external validation with FormGroup. Currently my code is as follows ... constructor(fb: FormBuilder, public router: Router){ //Grupo de formulario - Validações...
asked by 05.04.2018 / 19:24
1
answer

Pass variable in * ngIf

I have a variable in my input.component.ts called validacaoExterna , which gets a string from whoever uses it .. @Input() validacaoExterna: string; In my input.component.html I have a * ngIf that uses this variable *...
asked by 06.04.2018 / 16:01
0
answers

Add class when entering decimal number in input

I would like to use decimal numbers, I will insert a decimal number in the input and would like the class to pick up when it was inserted, for example: "min" = > 0.00, "max" = > 0.010 How can I do this? <?php $opcoes = array(...
asked by 16.04.2018 / 17:58
1
answer

Refresh page when closing a modal

How do I update a page whenever the modal is closed? because I have a problem that whenever I close the modal and I will open again it does not open ... so I need to update the page there it opens. Modal used <div class="modal fade bd-ex...
asked by 16.04.2018 / 16:28
1
answer

How to print a table-shaped array in nodejs on the console?

How do I get the same output of this array, written in Java, in NodeJS ? public class Matriz { public static void main(String[] args) { int[][] m = new int[4][4]; for (int i = 0; i < m.length ; i++) { for...
asked by 16.04.2018 / 19:31
1
answer

JSON Zip Code Problem with States and Cities Select

Good afternoon, I have a problem with my select states and cities. When I type a ZIP it fills in the fields automatically, I can already fill up to the State even though it is a select and better yet not needing to abbreviate the > St...
asked by 17.03.2018 / 18:22
1
answer

Pass the id of an element as a parameter to a function?

I have a table on my site that is automatically generating an id for each table column. I placed the function call on each line. How do I pass the id of this <td> per parameter on the function so that I can identify which row...
asked by 15.03.2018 / 17:46
1
answer

Validate Forms in Materialize

How can I validate forms by Materialize? I'm trying to use jquery-validate for this but it does not work, I put the rules and even when a rule is invalid the field still turns green. How can I make the field only go green when it's...
asked by 16.03.2018 / 16:00
1
answer

Display success message after registration is completed via AJAX

I want to display a message as "loading" while processing the registration and another with "Registration complete", this is my AJAX code $.ajax({ type: "POST", url: "http://localhost:5001/v1/enterprise", contentType: "application/...
asked by 12.04.2018 / 15:59