Questions tagged as 'angular'

1
answer

Angular Mask Doubts

Hello, I'm new to Angular and I'm having mascara problems! I'm using the masks of: "Angular-input-mask"; I have a form that has a 'CPF' field, the mask is applied perfectly. Visually when I type a letter, this letter does not appear in the fi...
asked by 11.04.2018 / 15:12
1
answer

How to copy an html block when clicking a button on the Angular?

I'm developing an ionic / angular application with a BD firestore so that's fine. I'd like to do this post link I can inject the code via "ng-template" but I do not know how I can make it repeat every time I click it. adicionarOutroItem...
asked by 03.10.2018 / 19:24
3
answers

Synchronous query in SQLite using Ionic

I have the following function below: public requisicaoXPTA() { this.database.executeSql("SELECT * FROM tbl_xpta", []).then((data) => { // o resultado retorna aqu na variável data }, (error) => { console.log(e...
asked by 01.12.2017 / 16:24
1
answer

POST with angle 5

So, I'm trying to make an app with angular 5 using auth with token. For that, in login, I need to make a post in my API (which I tested by postman and it's working), but I'm having a hard time doing this with the angular. My code is as follows:...
asked by 31.01.2018 / 16:59
1
answer

Line changes color when value is false

I have a list of users and each user can be disabled or enabled. I would like the user to set the 'false' value to change the color to gray. HTML: <tbody> <tr *ngFor="let user of users" > <td>{{user.user}}&...
asked by 06.11.2017 / 21:47
1
answer

Group data with NgFor and GroupBy

Before in Angular 1 when I wanted to do a grouping of data it was like this: ng-repeat="(key, value) in me | groupBy: 'role_id'" In my object me had a list of users with a different role_id field. Hence I wanted to do this: # Admi...
asked by 14.06.2017 / 21:29
2
answers

Close modal when clicking the button

Hello, I have this following modal, whenever I click on the "Rejected sale" button it opens, but I wanted to close this same modal every time it clicked on the "Send" button, which in the case and my submit, as I do this? <div class="chat-f...
asked by 20.12.2018 / 16:27
1
answer

My filter pipe is returning the wrong columns from my table

I tried to deploy a filter pipe but I noticed two wrong behaviors. Possessing two elements in my table: sfafasf: 150.00 and other variable cost: 80.00 When you put the name "other variable cost" in the filter field, the first row of the...
asked by 03.10.2018 / 22:23
1
answer

How to break lines according to a value

How do I break lines by value? For example a = 8. Then I have a "d" variable that receives a string. var d="written work considered in its original wording". If I put an If = a; it traverses the string by always counting q for 8 characters it br...
asked by 30.09.2018 / 23:58
2
answers

How to validate e-mail and CPF in angular 5?

Expensive, I would like to know how I can validate the e-mail and CPF in angular 5. I made the basic code: <mat-form-field class="full-width"> <input matInput placeholder="E-mail" [formControl]="emailFormControl" [(ngModel)]="e...
asked by 02.10.2018 / 21:02