Posts by Thiago Schappo Camargo • 31 points
2 posts
-
0
votes2
answers332
viewsA: Problems with Angular 6 script import
I don’t know if it is the best option, but you can check if you already have your declared function before injecting again in onInit() if( typeof nomeDaSuaFuncao == 'function') { this.inject = new…
-
3
votes5
answers41788
viewsA: How to sort an array of objects with array.Sort()
Summarizing with a little of each: users = [ {nome: "Thiago"}, {nome: "thiago"}, {nome: "Marcos"}, {nome: "thiago"}, {nome: "Ana"} ] namesOrder(arrayObj){ return arrayObj.sort(function(objA,objB) {…
javascriptanswered Thiago Schappo Camargo 31