Posts by thismarcoantonio • 98 points
6 posts
-
0
votes1
answer20
viewsA: Create only one and not several modals
Basically open the modal through a function and pass as parameter an object or array to be displayed in that modal. This way you will use only one modal and the desired performance will be achieved.…
-
0
votes1
answer143
viewsA: Use toLowerCase() on a string array - Angularjs 5, Typescript
Just iterate through the object array and map each tag. if (val && val.trim() != '') { for(item of items) { item.tag = item.tag.map(res => res.toLowerCase()); } } In order to be able to…
-
1
votes1
answer562
viewsA: Swap ngb-tabset tabs by clicking on button
Unfortunately I could not run a demo, but according to the documentation, it would be basically like this: <!-- Repare que aqui adicionei o #tabset="ngbTabset" --> <ngb-tabset…
-
0
votes1
answer109
viewsA: Nodejs returns: Illegal Arguments: number
It is your choice not to use bcrypt asynchronously? Thanks for alerting me, new here in the stack. Anyway, this would be my solution to your problem: const Promise = require('bluebird'); const…
-
2
votes1
answer391
viewsQ: Add instead of concatenating number to an input value
I don’t know if I made myself clear, but in the javascript code below, I want every time I click the button, a sum occurs, but I’m only able to concatenate. Thank you! function somar(){…
javascriptasked thismarcoantonio 98 -
1
votes2
answers760
viewsQ: How to solve this "Error in syntax"
I have the following question and cannot think of a solution: Make an algorithm that reads the duration of an event in seconds and shows it expressed in hours, minutes and seconds. My code:…
portugolasked thismarcoantonio 98