Posts by Sena Oliveira • 364 points
18 posts
-
0
votes2
answers199
viewsA: Change the input Mask when the select value is changed
Good afternoon, everyone, to come up with a solution and I’ll leave here the form I’ve solved. In the html component itself I added the following code: <input mask="{{…
angularanswered Sena Oliveira 364 -
-2
votes2
answers199
viewsQ: Change the input Mask when the select value is changed
Good afternoon, you guys! I have a form and in it I have a select with the options (Phone and Mobile) and I also have an input for the user to fill in the number. I want that when the user selects…
angularasked Sena Oliveira 364 -
0
votes1
answer46
viewsQ: Master updated alone with the checkout
Good morning, everyone! I was working on a branch and when I ran the checkout for master (git checkout master) it updated without me doing the merge. The following message appears:…
-
-1
votes1
answer56
viewsQ: Angular 9 Error 'length' of Undefined
Good morning! I am doing a function for each click of the user on a given button appear the field for him to add another phone. Follows image below: This is the html snippet: <div *ngFor="let…
angularasked Sena Oliveira 364 -
0
votes1
answer45
viewsQ: Github - Branch
Good morning, everyone! There is a repository on github with 02 branch: (Master and Develop). I cloned the Master branch in my local environment and from this Master branch I created the…
githubasked Sena Oliveira 364 -
1
votes1
answer41
viewsQ: How to reuse a React component by displaying it differently?
I have a component called Header and wish to reuse it in a few more pages. When I do the import Header from './Header' and call him on the page desired, it’s all right. What I wish is to bring the…
reactasked Sena Oliveira 364 -
-1
votes1
answer128
viewsQ: React-JS -useState, useEffect
Good afternoon guys, I have code where I am using a class for the status of my application. It is a simple application only at the level of study. In the application I am calling an external api…
-
1
votes1
answer72
viewsQ: Javascript - . map()
Good morning guys, I have an array, however I only want to multiply the array index 2 using .map(). Below is an example where I am multiplying all array positions. const nums = [1,2,3,4,5] let…
javascriptasked Sena Oliveira 364 -
1
votes1
answer728
viewsQ: Modal in React JS
Good morning, you guys! I have a form, on the button to save the data of the same I call a modal component asking if the user really wants to perform the operation. The question is: I don’t know how…
reactasked Sena Oliveira 364 -
1
votes1
answer87
viewsA: Using the __dirname global variable in the nodejs
Good evening guys, get it sorted!! `server.get("/", (req, res) => { var path = require('path') res.sendFile(path.normalize(__dirname + '.. /.. /front-end/src/views/index.html'))`…
-
-1
votes1
answer87
viewsQ: Using the __dirname global variable in the nodejs
Good night, you guys! Someone gets a help there, I need to leave the back-end folder and enter the front-end and get my html file using __dirname as it is in the image.…
-
0
votes1
answer279
viewsQ: Repository on Github
My doubt may be quite simple for some. I have a local folder called "projectX" containing 02 subfolders, being (back-end and front-end), I already have a repository in Github called projectX. Is it…
githubasked Sena Oliveira 364 -
6
votes3
answers11154
viewsQ: Create local branch from a remote branch
I have a cloud branch on Github called x1 and I need to create a local branch called xlocal from that cloud branch called x1. How do I do that?
-
1
votes2
answers1064
viewsQ: Spacing in the JSX
I have a JSX file and I need a space between the {item.payment.bucket} and OU. In HTML it would look something like this: {item.payment.bucket} OU. My JSX code: <ValueDiv> <Icon…
-
4
votes3
answers61
viewsQ: How to specify the files I want to add to the Stage area?
For example, I’m working on an x branch. I changed the following files 1,2,3,4. I checked the git status all right. So far so good! If I rotate the git add . will add the 04 files. How would you add…
gitasked Sena Oliveira 364 -
6
votes1
answer5238
viewsQ: How to disable compressed folders in Vscode?
Recently VS Code is leaving the subfolders created in lines (compatactate). How can I show them in the tree view?…
visual-studio-codeasked Sena Oliveira 364 -
2
votes2
answers75
viewsQ: Insert random elements into a Java Script array
Suppose I have the following array: const arr = [1, 2, 4, 5, 7] If I want to add the number 3 at position 02 of the array I would do as follows: const add = arr.splice(2,0, 3) console.log(arr) The…
javascriptasked Sena Oliveira 364 -
-2
votes1
answer126
viewsQ: How to Calculate Interest on a JS Node API?
I created a function that takes a value and adds 10% on top of the value. The question is: I want that if the user enters a value equal to or less than 100 it adds 10%. Now if the value is greater…
node.jsasked Sena Oliveira 364