Questions tagged as 'angular'

1
answer

Angular Accessibility

Hello, I'm developing a project and implementing accessibility in it. So fine, the screen reader works okay. My problem is when I exit from screen A and I go to screen B, on screen B has a loading, I would like to warn the screen reader that...
asked by 27.09.2018 / 22:48
0
answers

Removing quotation marks from a json string with replace typescript

I need to remove the quotation marks from a string that I get in json, for this I am creating a pipe, but I am not able to remove the double quotes. I tried something like: @Pipe({ name: 'prettyprint' }) export class PrettyPrintPipe imple...
asked by 27.09.2018 / 22:28
1
answer

Flip elements collapse

I have an element that I want to flip it as you click on it, this element is a collapse: <td><a class="fa fa-chevron-down iconedetalhes" data-toggle="collapse" href="#collapse{{i}}" aria-expanded="false" aria-hidden="true"></a&...
asked by 27.09.2018 / 20:11
1
answer

How to reuse code snippets in TypeScript on Ionic 3

On one of my pages, when the user clicks the Delete button, an alert appears asking for confirmation. This action exists on more than one page, to avoid duplicate code, how can I reuse the method below? Should I move to some location, do some...
asked by 23.09.2018 / 03:12
0
answers

Missing definitions for header, footer, and row; can not determine which columns should be rendered. Angular DataTable

I'm trying to create a data table of Angular IO: link But I'm getting:    Missing definitions for header, footer, and row; can not determine   which columns should be rendered <mat-form-field> <input matInput (keyu...
asked by 27.09.2018 / 13:43
1
answer

How to update the amount of messages with socket.io in an Ionic3 Angular app for a particular endpoint?

I want to implement an icon in a view that brings the amount of messages that a user has in his box, however, updating the quantity information must occur in real time according to the model below Facebook: I have an endpoint of an API...
asked by 20.09.2018 / 17:18
0
answers

My HTTP request (GET) is not running in ngOnInit () - Angular 6

I have a CRUD on angle 6 that connects to node and mysql. When I access the homepage the getQuotes () function loads all the data I need. When I access the screen to update a record and perform this update I'm forwarded to the home screen, but t...
asked by 25.09.2018 / 19:50
1
answer

Ionic 3 Http request does not add header authorization

Hello, I'm having a serious problem doing an HTTP REQUEST POST when I need to add a custom Header. My API Backend, has some blocked routes and requires authentication via Token, I need to pass it on my Header, however there is no way this works....
asked by 17.09.2018 / 23:30
0
answers

Angular - Date Picker does not update the selected month

I am developing a calendar in my application in Angular 5. <my-date-range-picker *ngIf="this.opened && view=='date'" class="date_picker" [options]="date_picker" [(ngModel)]="this.model" (dateSelected)="onDateRangeChanged($even...
asked by 24.09.2018 / 18:41
1
answer

Angular 6 how to leave default field in select?

I'm trying to leave one of the option elements as selected, but I can not put it to work on Angular 6. app.component.html: <select [(ngModel)]="marcaSelecionada" class="form-control" name="marca" required> <option value="">S...
asked by 18.09.2018 / 15:33