Posts by Rubens Barbosa • 557 points
22 posts
-
-1
votes2
answers164
viewsA: how to accept null or empty field with Celebrate js middleware
I don’t know which version of Node you use, but from version 14 there was the implementation of Operator of null coalescence expressed by ??. I believe this will serve your case, putting validation…
-
-1
votes2
answers346
viewsA: Differences between Monolith and Monorepo
I’m also a layman, but being simplistic I believe that monolith (or monolithic) is the inverse of Microservices. A backend monolito for example, it uses an architecture where the whole system…
front-endanswered Rubens Barbosa 557 -
1
votes1
answer44
viewsA: Promise Node js
Since you’re using async / await you can’t do it that way ? let example_3 = (id) =>{ return new Promise( ( resolve, reject ) =>{ try{ request({ method:'post', body: id },error(..... //Executo…
-
1
votes1
answer57
viewsA: how to add days in javascript date
The problem is in the sum startDate.getDate() + days, because the value startDate.getDate() is the type number and the value days is the type string. So he’s just concatenating values, for example:…
-
1
votes1
answer183
viewsQ: Vuex. Good practice when using Mutation
I have a question about updating the state using the mutation, I usually see the use as follows: [ALGUM_MUTATION_TYPE] (state, novoArray) { state.array = novoArray } In this model, we overwrite the…
-
1
votes1
answer189
viewsA: I cannot run the mongoDB server
If you already have everything you need (including the C: data db folder) then the problem is probably a conflict of versions of your system with mongodb. I believe your OS is 32-bit, so you need to…
mongodbanswered Rubens Barbosa 557 -
3
votes1
answer601
viewsA: Update Vuejs son Component method
You can use the $children to find a child component and thus access all your data, methods, etc... Try to create as follows: const componenteFilho = this.$children.find(component =>…
-
1
votes4
answers730
viewsA: Hover CSS affect another element
With CSS: First, take the style off the tag <a> and place in the css class. https://jsfiddle.net/1buoeckz/ .obs-aluno{ display:none } .aluno:hover > a{ display:block }…
cssanswered Rubens Barbosa 557 -
2
votes3
answers640
viewsA: How to use anchor in vuejs/Vue-Loader?
I found that by using the tag <router-link> instead of the tag <a>, it is possible to solve this problem, besides also solving other problems such as links-active for example. In case it…
-
1
votes3
answers640
viewsQ: How to use anchor in vuejs/Vue-Loader?
I’m creating a project with vuejs webpack (Vue-Loader) and recently I came across a problem, I can’t anchor any tag, because Vue understands that when using the hash #, you want to direct to a…
-
2
votes1
answer202
viewsQ: Jade template engine name/nomenclature
Hello, a few days ago I’m getting a message when I will install the Jade Template Engine via npm , the message says: npm WARN deprecated [email protected]: Jade has been renamed to pug, please install the…
-
1
votes1
answer742
viewsA: Facebook Api with Javascript SDK is only returning name and id
In the latest versions of API it is necessary to specify in the URLthe data you want to return. I removed all comments from the code and left commented only the part I needed to change. function…
-
0
votes2
answers11548
viewsA: How to remove unused packages in the node_modules folder with the NPM command?
To add the packages npm install <nome_pacote> To remove npm uninstall <nome_pacote>
-
1
votes1
answer742
viewsQ: Facebook Api with Javascript SDK is only returning name and id
Hello, I’m trying to use the facebook api to login to a certain page , it worked all right , but the return of the data takes only one object with name and id , I read some articles and saw that the…
-
5
votes6
answers20421
viewsA: How to get weather and weather information?
I found this 'API' which returns the following data: { "cidade":"Sao Paulo - SP", "agora":{ "data_hora":"08\/11\/2013 - 19:59", "descricao":"Muito Nublado (noite)", "temperatura":"19",…
-
0
votes1
answer83
viewsA: Prefixes using Css Stylus
I found a library for prefixes, it’s called nib , I had already seen it but I didn’t know how to use it. I discovered that we need to use the @import and import the folder nib. The other error I…
-
2
votes1
answer83
viewsQ: Prefixes using Css Stylus
Hello, I’m starting to use css Stylus and I’m having trouble adding the browser prefixes. Is there any autoprefixer that adds everything automatically or have to do everything manual? Thank you. Obs…
-
1
votes2
answers4914
viewsA: How to get value from a form with Angularjs?
Create a variable in the controller for this ng-model and take the value of $scope.quantidade, then just pass the variable to the function. //Pega o valor do input var quantidade =…
-
3
votes1
answer416
viewsQ: Security when sending and taking data from a URL
Hello, I’m learning development and I don’t know much about security. I’m making a web application using Nodejs + Expressjs + AngularJs + MongoDB. I did it this way, Mongodb data is sent to a URL…
-
5
votes2
answers419
viewsQ: Is it possible to restrict access to variable information with Angularjs?
Hello, I am new to development and would like to know if there is any way to hide information from variables in Angularjs , I am using a Mongolab API and did not want to make my apiKey visible to…
-
2
votes1
answer802
viewsA: Angular + Chartjs
I think you should reference the controller in HTML, for example use the ng-app="app" on the tag <html> and use ng-controller="LineCtrl" on the tag <body>…
-
0
votes3
answers598
viewsA: Is it possible to assemble default layout for HTML pages?
You can use Angular.js and Angular-route.js, would look like this: HTML page <html ng-app="TesteApp"> <head> <meta charset="UTF-8"> <title>Teste Rotas</title>…