Posts by Rodolfo Patane • 319 points
19 posts
-
0
votes2
answers289
viewsA: Create a new object with the type received by parameter
You can use this concept of Generics in typescript in newer versions, a simple example: class Generic<T> { constructor(arg: T) { console.log(`Valor: ${arg}, Tipo: ${typeof arg}`); } } function…
-
0
votes1
answer195
viewsA: Firestore Timestamp
Good morning, apparently Data_nascimento.toDate(); it’s right, by mistake, you’re trying to give a toDate() again on data_nasc_.toDate, the nasc_data_isalready a date
-
2
votes1
answer41
viewsA: Javascript Element not defined
Good afternoon, there are two issues ai, 1-the code is Asynchronous and Function populateTable() is running within Function calling Able() after calling loadDetailsbody() when it should only be in…
javascriptanswered Rodolfo Patane 319 -
1
votes2
answers580
viewsA: Angular ignores *ngFor in select option
Good afternoon friend, there is great chance of the component initialization being in the wrong place the command: var instances = M.FormSelect.init(elems); should be executed after the data has…
-
0
votes1
answer108
viewsA: How do I save a sequelize value to a variable in Node.js?
Hello, For the error presented you must be receiving a file as return, there are two ways to connect with asynchronous situations in javascript Using async/await async getData() { return await…
-
0
votes2
answers444
viewsA: I cannot import a feature module into the main module. Angular
A Component can only be in the Declarations section of 1 Module, and the Categoriascomponent component is correctly in the Categoriasmodule module. Now for you to use this component you have its…
-
2
votes0
answers119
viewsQ: Do new Apple Certificates only work with Xcode 11?
Apple’s Developer Site has gained new layout, and apparently new features. I created a Certificate today and instead of iOS Distribution, it’s only appearing in Distribution and in front "For use in…
-
1
votes1
answer156
viewsA: Firebase object always returning Undefined out of subscribe
Good night buddy, Let’s go to the technical explanation first, this Code of yours is Asynchronous, and some things are happening in a different order than what is written, you are making use of…
-
3
votes2
answers969
viewsA: What is the usefulness of the service layer in the Laravel?
Good morning, I’ll give you my opinion, but I believe the way for you is to understand why we share the code and why we share it. In this example you only transfer the data from the controller to…
-
0
votes1
answer311
viewsA: Service for sending SMS or Push Notification
Hello, there are two different things in your question. First, how to run a direct service, this is totally not recommended, in the universe of Saas where Firebase is, this would generate a huge…
-
0
votes2
answers1534
viewsA: Convert a JSON to OBJECT with Angular
If this JSON Voce receives this in String Voce format has to do a JSON Perse. this.service.getConfig() .subscribe(dados => this.cursos = JSON.parse(dados)) from what I saw in the format of JSON…
-
4
votes1
answer314
viewsA: Is the HTTP protocol in version 2 still stateless (stateless)?
Good afternoon, I will give my cooperation, although I am studying the subject now. From a glance at the image below, as I understand it, the idea is simply to repurpose the last header, the…
-
1
votes2
answers1101
viewsA: Cloud Firestore - Composite query
Good afternoon, Try the following, go to the firebase console, go to the firestore in the index tab and create a new composite Intel: Collection: with the fields: available Ascending and createAt…
-
0
votes3
answers497
viewsA: Convert string into a list where each element in the list is 3 characters from my initial string
Look at this implementation in Javascript, it can serve as an inspiration, and it’s very simple, it goes through letter by letter, and every interval (3 in your example) inserts in another array.…
-
0
votes2
answers86
viewsA: Auto Select the first value of a Select Option
Good afternoon, I don’t know if I understand very well but this option tag has the parameter Selected that you can mark for whom you want selected. ex: <select id="meu-select" tabindex="-1"…
-
0
votes1
answer52
viewsA: Help with product registration with images
I’m not sure I understand your problem, but it seems you’re making a for, which is a synchronous method and inside it firing various asynchronous methods, which means that the for will finish and…
-
0
votes1
answer381
viewsA: Problems while trying to recover data from firebase Realtime database
experiment like this: this.banco.database.ref('/usuarios').orderByKey().equalTo(uid) .once('value', (snap) => { if (snap.val()) { console.log(snap.val()[0]); } else { console.log('erro'); } }) as…
-
1
votes1
answer114
viewsA: Use Firebase in SPA project
Good morning friend, firebase has this "opening" even, what you need to do is protect internally the data, the database, firestore and Storage, have security attached to the logged in user, so even…
-
0
votes2
answers807
viewsA: Firebase security
The domains allowed for authentication that the Thiado Bocchile spoke, has to do only with the Authentication, that is, in the case of javascript frontend development, even if they download your…