Select sort order in a select used to select sorting field

I have a multiple select that allows you to choose the fields to sort by. This works without any problems. But how could I manage the interface to be able to select asc or desc on each of these selections? For example I have a select with these sorting parameters:angul employee -guy -project for each […]

By Man24
Published
Categorized as angular, rxjs, typescript Tagged , ,

Verify if string is in literate object and return value

i have this literate object: export const SORT_BY: SortData[] = [ { employee: { compareAttribute: ’employee.lastName’ }, }, { type: { compareAttribute: ‘type.name’ }, }, ]; and i have an other array that can contain value as "employee , type…" i would verify if every element in this last array, are in literate object key, […]

By Man24
Published
Categorized as angular, typescript Tagged ,

Sorting listing of object with dynamic criteria

I receive a list of objects with various properties, and in addition I also receive an array with the name of the properties I want to sort (and by the way I have to sort following the order in which I receive this second array etc… so in sequence) For example, if I have a […]

By Man24
Published
Categorized as angular, rxjs, typescript Tagged , ,

real-time jwt token expiration management

I manage the expiration of the JWT token inside the interceptor. The problem I would like is to be done what I do, when the token expires and not when the user requests an API request. Because currently, I check that the token has expired every time a JWT request is intercepted, so during inactivity […]

By Man24
Published
Categorized as angular, jwt, rxjs Tagged , ,

How can I show a modal that warns 10 seconds before the session ends?

I have a project in Angular where the session expires at the end of 60 minutes as the known token is invalidated. Currently I have a JWT interceptor that when it detects the invalidated token takes me to the login page. I would like to implement a modal window in which the user is notified […]

By Man24
Published
Categorized as angular, rxjs Tagged ,

How can I sort the result of an observable in a multiple way?

I have a TableData type obserable which returns me a set of table rows and columns. The user can select from the select a set of columns (to which the rows refer) to be sorted (by default in ascending order). For example, if the user enters "employee" and "project", I should sort the lines first […]

By Man24
Published
Categorized as angular, rxjs, typescript Tagged , ,

How come I get the 401 error after a period of inactivity?

why do I get this error after a few minutes of inactivity? Among other things, at that point it no longer extracts the data from the database, and if I update the page it does not bring me back to the login page (even forcibly), but I have to close the browser window and reopen […]

By Man24
Published
Categorized as angular, ngrx Tagged ,

problem when pass columns and row in [nzData] on Ngzorro

I have a problem with ngZorro. I have created a dynamic table and I make sure that the columns and rows are populated automatically based on the Observable I send. The problem that the data I receive from the obserable are two arrays (one of the columns and one of the rows) and therefore passing […]

By Man24
Published
Categorized as angular, pagination Tagged ,

NG-zorro, problem with iteration of Observable

I would like to ask you why I have trouble getting my observable in the [nzData], but not if I get the data in the * nfIF. In detail with this approac works good: <div *ngIf="visibleAggregate"> <nz-table id="activitiesTable" *ngIf="tableData$ | async as Table" > <thead> <tr> <th *ngFor="let column of Table.columns"> {{ column.label }} </th> […]

By Man24
Published
Categorized as angular, ng-zorro-antd, observable, rxjs, typescript Tagged , , , ,

How can I handle multi-aggregation of data in angular to get something like a pivot table?

I have a database that has several fields related to activities. In detail I have a table that presents: employee name project he works on date hours I have already implemented some aggregation functions through the use of selectors, which allow me to aggregate by date, by employee and by project, obtaining the total number […]

By Man24
Published
Categorized as angular, rxjs, typescript Tagged , ,

Still Have Questions?


Our dedicated development team is here for you!

We can help you find answers to your question for as low as 5$.

Contact Us
faq