Posts by Diego Estacho • 119 points
34 posts
-
-1
votes1
answer165
viewsQ: Error when executing Angular project
I’m trying to run an Angular application in my development environment, but I’m going through some problems. I cloned the project repository, ran npm install, and when running an ng serves, the…
-
0
votes1
answer117
viewsA: How to resolve the error ( code: "Storage/unauthorized" ) within firebase
a silly mistake on my part. The Storage paths in the security rules and in the project settings were different, I made the correction and everything occurred as expected. Problem solved.
-
-1
votes1
answer117
viewsQ: How to resolve the error ( code: "Storage/unauthorized" ) within firebase
I’m here with an angle panel for maintenance. All I need to do is upload a pdf file to the server, and return the download url of this same file. But I’m bumping into this mistake and I can’t move.…
-
0
votes1
answer129
viewsQ: How to query by passing an array per parameter in the firestore?
I have a list of documents in the firestore, called shopping. Within each purchase of these, I have a FIELD, called condicaoPagamento, this keeps the condition of payment of the purchase. What I…
-
-1
votes1
answer221
viewsQ: How to update the values of my form through a modal?
I have a form to fill out a sale, this form will be assembled according to the information that the user will choose by modal. I can normally receive data from modal, but my form does not update the…
-
0
votes1
answer1504
viewsQ: Help to perform javascript start date and end date filter
I am trying to perform a filter between the initial and final date chosen by the user. I have some objects that look like: let objetos = [ {nome: 'teste01', data: '03/09/2019'} {nome: 'teste02',…
-
1
votes1
answer66
viewsQ: How to color a button corresponding to a selected value?
My question is as follows. I created a simple matrix with animal names. For each name I push a button dynamically, and manipulate the DOM of this button to get a color for when selected, and a color…
-
0
votes0
answers62
viewsQ: Filter a javascript array dynamically using for
I need to build a filter on a list, it turns out I’m having a problem because comparatives are dynamic. Basically I need to give the user the condition of filtering by, several payment conditions…
-
0
votes1
answer224
viewsA: *Ngfor is not traversing the array in html
I tested again here and now running on the device itself and not in the browser. On the device works normally, the only problem in question seems to be in the browser that took about 40 minutes to…
-
-1
votes1
answer224
viewsQ: *Ngfor is not traversing the array in html
I am consuming the Wirecard API to perform an integration, the moment I try to return all the cards that are registered to a client, I can get them only in the console.log menu, when I try to go…
-
0
votes3
answers66
viewsA: How to run a search on an array until a condition is met?
Follow the example of how the final result was, also includes another data node for comparison: consultaNome(){ this.nomeRepetido = false; for(let i = 0; i < this.nomesCadastrados.length; i++){…
-
2
votes3
answers66
viewsQ: How to run a search on an array until a condition is met?
I have an array of users coming from a firebase database, I capture this array and run a map to capture some information, for example: mount a Cpf array, phone... This Cpf array for example I will…
-
3
votes1
answer222
viewsQ: Help to get decimal value of mask input (Ionic 3 + br Masker)
I am having a hard time with a problem that I believe is very easy to solve, but I am struggling hard enough to reach such a solution. I have a simple input that format using the brmasker library…
-
0
votes1
answer46
viewsA: How to work properly with the request?
Here’s an example of how I solved this question: notificaAgendamentoCriadoProfissional() { let data = { app_id: "Seu Id do onesignal", contents: { "en": "Você recebeu uma nova solicitação. Verifique…
-
0
votes1
answer46
viewsQ: How to work properly with the request?
I need to send a simple notification using onesignal, but is giving error in the build of the web app because of https import, as the code I am importing as follows: var https = require('https');…
-
1
votes3
answers375
viewsQ: Go through a for to fill a table in pdfMake
I am building a pdf of a sale. I am performing dummy data testing to validate the document layout. But the layout is "popping" as you go through the for. This is my code: createPdf() { var column =…
-
0
votes0
answers86
viewsQ: How do I access the url that returns me in the.log console?
I am doing a photo upload to firebase Storage, everything goes well, the file is transferred and recorded inside. But when I sign up within the task I can’t get the image download url to record to a…
-
0
votes1
answer57
viewsQ: How do I make my title stick to color Primary as well as my icon?
I built a menu interconnected with the tabs component in Ionic, I can make my icon stay in the color Primary when a menu item is active, so far so good. But my title always stays in the default…
-
0
votes1
answer156
viewsQ: Firebase object always returning Undefined out of subscribe
I’m trying to do something simple. It happens that I need to obtain the quantity of stock of that item, at that given moment to then make the return and the feed of the stock correctly. I’ve built…
-
0
votes0
answers88
viewsQ: How to position Popover correctly (Ionic3)
I need to position my Popover exactly next to the button (more) you have inside each item. Whenever I click the more button, the Popover is triggered, but it is always in the same position…
-
0
votes0
answers74
viewsQ: How to hide and show a div dynamically?
I need to dynamically show and hide a div. I even got something very simple using *ngIf, but what I need is that: When you click "the grid button", it opens the div only with the information…
-
2
votes1
answer52
viewsQ: Help with product registration with images
I am trying to register products, where it is possible to register more than one photo per product. But in the service that I created, I call a for to fill the image matrix, this happens very well.…
-
0
votes0
answers32
viewsQ: Problems with Ionic Native Device Accounts plugin
I’m trying to get accounts registered on the device with the device Accounts plugin Ionic, but in the file I have not returned anything on the console. My code is : testeSemNative() {…
-
-1
votes1
answer54
viewsQ: How to transform a matrix of a SINGLE object?
My question is this, how can I make a matrix that has 3 objects become a single object ? According to the print below, the matrix is bringing me 3 objects, however I need to assemble a single object…
-
0
votes2
answers336
viewsA: How to prevent an addeventlistener from running several times in a function?
Thanks to the companions for the answers, I was able to resolve the issue by calling addeventlistener in the page load as suggested. So the code went like this : ionViewWillEnter() {…
-
0
votes2
answers336
viewsQ: How to prevent an addeventlistener from running several times in a function?
I will explain my situation. I have a function that displays a certain ad to the user in the application. After viewing this ad, I call an addeventlistener, who passes a CLOSE event. After this…
-
-1
votes1
answer607
viewsQ: How to call a function within an addeventlistener?
I wonder if it is possible to call a function within a given event using addeventlistener(). I have this function, which adds a reward to the database : //Função que adiciona uma recompensa ao banco…
-
0
votes2
answers390
viewsQ: How to get data from an observable firebase?
I have a list that is loaded from firebase. This list has 3 attributes, value, id, and date. Only I will need to capture only one of these attributes and assemble an array with them, to then perform…
-
1
votes1
answer65
viewsQ: How to access a property of the Event element in Javascript?
I think it’s a silly question, but by my beginner knowledge I’m hitting myself a little. I am building an application in ionic3, this uses typescript, however the plugin I am working uses pure…
-
1
votes0
answers320
viewsQ: Error while trying to login with facebook and google Native (IONIC3)
I am having some difficulties to implement the login of google and facebook Activate in an ionic3 application. The problems I get are the following, on my console : main.js:71 16 main.js:84…
-
0
votes0
answers44
viewsQ: How to do a reduce of decimal values?
I need to use the reduce in Javascript, because I need to sum several simultaneous values that are contained in an array. As I am using Typescript (Ionic3), the types of these variables are number,…
-
0
votes0
answers252
viewsQ: How to get a Firebase Storage photo URL?
Good morning everyone, I’m having a hard time capturing the URL of a certain photo that is sent to firebase Torage. The client registration works perfectly, the image upload is also done correctly.…
-
0
votes2
answers2829
viewsQ: How to add numerical values from an array?
I would like to know how I can get the sum of numerical values within a matrix. My case is the following, I am building a sales screen, currently I have an array with the products that the user…
-
0
votes2
answers532
viewsQ: Capture and create object array by Ionic 3 checkbox
My doubt I believe is something simple, but I’m not getting to a logic.. I own a sales application, which has a list of products being returned from firebase, and each product of this has a checkbox…