Posts by Flavio Cardoso • 81 points
6 posts
- 
		0 votes1 answer46 viewsQ: How to calculate the total in a filter in Vue jsThis application Vue calculates totals in a list as below within methods: somaTotal(){ let amounts = this.transactions.map(transaction => transaction.valor); return this.total = amounts… 
- 
		1 votes2 answers172 viewsQ: Trying to make a for on a Vue-js objectI’m trying to loop (for) an array object in Vue-Js, (javascript) whose size is 11 (lenght=11) as below. But when I do: console.log(this.grouped) // Here it shows the object with length=11 for (var… 
- 
		1 votes0 answers133 viewsQ: How to access a typescript object?I’m trying to access a database on firestore with this getAlldocuments: getAllDocuments(collection: string): Promise<any> { return new Promise((resolve, reject) => {… 
- 
		5 votes2 answers225 viewsQ: How to group a list in javascript and calculate subtotals?I have the following list: nomes = [ { nome: "flavio", valor: 10 }, { nome: "flavio", valor: 20 }, { nome: "fran", valor: 30 }, { nome: "fran", valor: 40 }, { nome: "Roberto", valor: 50}, { nome:… javascriptasked Flavio Cardoso 81
- 
		0 votes2 answers117 viewsQ: How to install the express in Ubuntu via npm?When I try to install the Express in the Ubuntu, with the command npm install express, this error occurs: npm WARN enoent ENOENT: no such file or directory, open '/home/flavio/package.json' npm WARN… 
- 
		0 votes1 answer278 viewsQ: How to install non-terminal version 6.10.3 of nodejsHow do I install version 6.10.3 of nodejs in Ubuntu ? When do I install from the terminal (sudo apt-get update sudo apt-get install nodejs) it always installs version 4.7.2. Is there another way to…