Questions tagged as 'javascript'

1
answer

SetState does not work inside component

Hello, I'm trying to get a setstate but when I run it it returns me which is not a function renderInput({ input, label, type, meta: { touched, error, warning } }) { onChangeTextDestino = async (param) => { try { this.setSt...
asked by 27.09.2018 / 22:10
0
answers

Order rendering problem in repeat loop view

On the Tablet of the Ipad, inside the webview, ng-repeat is cluttered, someone can tell me what's wrong ... because the web works normal. <div id="content" class="content-olimpiadas"> <div class="container-olimpiadas whith-men...
asked by 27.09.2018 / 22:29
0
answers

Problems connecting Node and MongoDb

Some days ago I'm having a problem with a code that I can not resolve. What I am trying to do at the moment is to register the users in mongodb through the node. I am using the view mechanism ejs, but until then I have checked everything and it...
asked by 23.09.2018 / 03:15
0
answers

How to create a non-global variable?

How do I create an initial variable to write old data, and after editing on the form, make sure it is different? Code: app.controller("ModalController", ["$scope",function($scope){ var fixa = [$scope.elemento_mutavel].slice()[0]; if...
asked by 26.09.2018 / 23:28
1
answer

Minutes, Seconds and Milliseconds with setInterval

Speak, I'm trying to make a simple stopwatch and I want to display Minutes, Seconds and Milliseconds, I can display minutes and seconds, but can anyone give me a light on milliseconds? The method below runs every second, but if I put instead...
asked by 25.09.2018 / 00:25
1
answer

Get real-time id Firebase

I am creating a new document in firebase and like to get the id that I will be creating to save in my collection, however how would I get the same if I have not yet saved it in the database? Example: the id that will generate will be Iq313NGP...
asked by 25.09.2018 / 00:59
0
answers

zero to the left of the number (type number)

<input oninput="if (this.value.length > this.maxLength) this.value = this.value.slice(0, this.maxLength); validity.valid||(value='');" min="0" step="1" type="number" maxlength="9" formControlName="quantity" class="form-control" [ngClass...
asked by 24.09.2018 / 22:34
0
answers

Paint numbers of a table according to the numbers of an array

I have a method in Javascript that creates a table of 0 a 99 , and I have a vector that goes from 1 a 5 . The idea of the script would be that every time the table number was the same as the vector, the table number was painte...
asked by 24.09.2018 / 21:53
0
answers

How to make a reduction of decimal values?

I need to use the reduce method in JavaScript, since I need to sum the multiple concurrent values that are contained in an array. As I'm using TypeScript (Ionic3), the types of these variables are number , not float or...
asked by 24.09.2018 / 21:53
2
answers

Timer

I'm developing a web site project and I'm having trouble creating a "timer". I need it to work as follows: The user reloads the credit (EX: 4 reais = 2 hours); The available times are: 1,2,3 hours; After reloading, the user goes...
asked by 30.10.2017 / 17:46