Posts by rogerdossantos • 121 points
8 posts
-
4
votes1
answer199
viewsA: Redirect Vue.js
According to the Documentation, baseUrl is deprecated since version 3.3 of Vuejs, being necessary the use of publicPath. module.exports = { publicPath: '/', }…
-
1
votes2
answers883
viewsA: Is there a null coalescence operator in javascript? Just like the C#? operator
Finally, the JS null coalescence operator proposal is advancing: TC39 Proposal nullish coalescing. So (ES2020 ?) we should have this operator and the null navigation operator in the JS, which helps…
javascriptanswered rogerdossantos 121 -
1
votes1
answer314
viewsA: Angular 7 - Compare Lists
You could do it like this: var x = [1,2,3]; var y = [3,4,6]; x.filter(x => y.find(y => y == x)); // [3] It will result in an array composed of duplicates, so you can remove these in the list…
-
0
votes1
answer98
viewsA: How it would be possible to perform combobox search C#
Oops, from what I understand you’re wanting a Autocomplete is this? A textbox that reacts to the user’s typing event showing the options that match the typed text? If so, there’s this example of…
c#answered rogerdossantos 121 -
0
votes2
answers79
viewsA: How to create hierarchy functions? Ex Console>Error>Writeline()
In the POO paradigm, creating hierarchy means a Daughter class inherit from a Father class. But I believe that your example does not need hierarchy, but better Domain Modeling only. As Diego…
-
1
votes2
answers61
viewsA: How to update two tables
Looking at the example in the documentation, the recommended would be to call the Executenonquery method to each registered command. It would look like this: command.CommandText ="Insert into Region…
c#answered rogerdossantos 121 -
0
votes1
answer135
viewsA: Nodejs: How to keep an updated list accessible between files
If you want to share a property between several modules of your application, one way is to use the Singleton Pattern applied to Node, defining a module that contains the single instance, which will…
-
2
votes1
answer282
viewsA: ngModel inside ngFor - Angular/Ionic
From what I understand you have a list of questions, which have a list of answers, correct? If so, I recommend working your model with better defined classes, an Entity and a Value Object set, such…