Posts by Gabriela Mendonça • 537 points
23 posts
-
0
votes1
answer53
viewsA: How to show data stored in Firebase on Ionic?
I recovered by storing the return data in an object: vm.obj = []; db.collection("minhaTabela").get().then((querySnapshot) => { querySnapshot.forEach((doc) => { vm.obj.push(doc.data()); }); });…
-
-1
votes1
answer2032
viewsA: How to generate a build (production) of an angular project?
I do it this way: I have two files environments, in the .angular-cli.json "environments": { "dev": "environments/environment.ts", "prod": "environments/environment.prod.ts" } they reference two…
-
7
votes2
answers123
viewsA: Why doesn’t my class apply the style I set to the "H1" tag?
You are using . before the name of your class: <h1 class=".fonte-style-h1">Oie CSS!</h1> Try to use without the stitch this way: <h1 class="fonte-style-h1">Oie CSS!</h1> The…
-
0
votes1
answer25
viewsQ: Page loads before firebase data returns.
I am with a controller, where I search data firebase, but when doing this search the code suffers a delay and the page is loaded before with empty data before the query actually ends. My controller…
-
0
votes1
answer505
viewsA: Doubt routerLink and route.navigate(<route I want>)?
On the page you will receive the parameters both by routerLink how much for navigate can make a logic to see where it came from. Ex: Using the routerLink you pass the parameter this way: idPagina1 =…
-
1
votes3
answers1253
viewsQ: How to set the first value in the combo?
Guys, I need some help: I’m trying to set the first state in the combo, I’ve put Selected but without success. Can someone tell me what might be wrong, or something to help me solve. My code:…
-
0
votes1
answer162
viewsA: Return the generated id
Put a (click) button on the button calling the post, and then you assign the searched id to the variable that is your ngModel in the HTML page .then(Answer => { Sponse = Sponse.json(); this.id =…
angularanswered Gabriela Mendonça 537 -
0
votes1
answer82
viewsA: How to control filters for a query that persists in mongodb
I solved it that way: @Query("{$and: [" +"{'online': ?0}, " +"{'locations.appointmentTimeRanges.weekday': { '$regex': ?1 }}, " +"{$or : [{'specialties.name': { '$regex': ?2, $options: 'i'}}, $where:…
-
1
votes1
answer82
viewsQ: How to control filters for a query that persists in mongodb
I have this query in my api: @Query("{$and: [" + "{'online': ?5}, " + "{'locations.appointmentTimeRanges.weekday': ?6}, " + "{'specialties.name': ?7}, " + "{'healthInsurances.name' : ?8}" + "]}") I…
-
1
votes1
answer106
viewsA: Select2 Bootstrap Angularjs
I don’t know exactly what your code is, but I use it this way: <select chosen="chosen.options" id="especialidade" ng-model="specialty" no-results-text="chosen.empty" class="form-control">…
-
1
votes1
answer166
viewsA: Pass ID to modal via ng-repeat Angularjs
To send the id to a method in your js just put the click and call a method passing the Prod.productId as parameter. <button id="btn" class="btn btn-info btn-sm text-white" data-toggle="modal"…
-
2
votes1
answer1137
viewsA: Edit table at Angular 6
Then, you can do the following, as you have ngFor, put a third and fourth column to use the chosen Operator, this way: <tr *ngFor="let operator of dataSource"> <td>{{ operator.operatorId…
-
0
votes0
answers101
viewsQ: How do I delete commits from git and consider the old with new implementations?
Personal I have the following problem, I was developing and comiting slowly the changes, when I arrived at a certain point I had to go back in one of the commits using: git reset --hard <numero…
-
1
votes1
answer61
viewsQ: I’m having trouble reading a service variable on other controllers
I have the following problem: I have a service where I create a variable that I will manipulate and send to another controller. This is my service app.service("maissaude", [ "$rootScope",…
-
0
votes2
answers62
viewsA: Alignment problem in CSS
I see you’re wearing bootstrap Do you want to leave the div down at the same input position? If that’s the case, take that position and put col-12 in the div. If you want input next to div, put…
-
3
votes2
answers683
viewsA: Remove table line html with typescript
Look at this example I have. I have a schedule list of a schedule by days of the week and I want to exclude times that are past the current date. let sizeList = this.horariosIntervalo.length; //O…
-
6
votes2
answers683
viewsA: Remove table line html with typescript
You want to delete definitely or just make a condition? For this you can use *ngIf, for example <td *ngIf="item.nome != 'Angular'">{{item}}</td> or <input *ngIf="item.nome !=…
-
1
votes1
answer40
viewsA: Nodejs ignores request POST made by Angular
Try to use it that way salvar(user: User): Promise<User> { return this.http.post(this.url, user) .toPromise() .then(usuarioSalvo=> usuarioSalvo.json()) .catch(erro => { return…
-
1
votes3
answers1210
viewsA: How to organize a project in Ode
William, read this material. I based on him to structure my project, and he explains very well the many cases that can be adopted and the best of them:…
-
3
votes1
answer334
viewsA: How does the angular router work?
Bruno, There are several ways to use the router and pass parameter. Via the browser route: In your routing.module: import { NgModule, ModuleWithProviders} from '@angular/core'; import { Routes,…
angularanswered Gabriela Mendonça 537 -
2
votes2
answers490
viewsQ: How to use anchor in Angularjs?
I am starting to work with Angularjs and I have the following situation I have a href that redirects to a div inside the page itself by the id of the div: <a href="#teste"></a> <div…
-
0
votes2
answers1690
viewsA: Error Datepipe Angular 6
Have you ever tried to convert in Angular the received date by passing inside a new Date()? I’ve done it several times and it worked. Another thing too, I directly import the core to use Locale:…
-
1
votes0
answers719
viewsQ: When receiving notification from Paypal with payment status, it gives error 500 when pushing on my API
The code below is the PUSH created for Pagseguro to send me the notification of the status of my payment. But the error returned is 500, and in their forum no answers so far. Someone who has been…