Category "angular"

Why does my mat-paginator display incorrectly and there is no scrolling of pages if the table is out of bounds

here is my code html: <table mat-table [dataSource]="data"> <ng-container matColumnDef="Audit_ID"> <th mat-header-cell *m

How To Convert From Array of byte to string and preview the image in angular

This is my model image and image saved in database as a binary array. I want to convert image value from array of bytes to string to preview the image. export c

How to add a hover effect with dynamic styles to a component element?

I have this Angular component where hover effect is currently applied with pseudo-class :hover in .scss file. But I want to apply the hover effect with dynamic

Loop and HTML table in Angular

I have a problem in my loop... I would like to display the Belgique value once. The variable is called PAYS_LIB. Here is the JSON file. The path => REGROUPEM

Is there a way to set the first enum value to 1 in protobuf?

The first enum value needs to be 0 in protobuf, but this does some trouble in a dropdown component of Primeng. Is there a way to set the first enum value to 1 ?

cypress elm[aelFn] is not a function error in afterAll test hook

I'm using cypress 9.3.1 with @cypress/code-coverage 3.9.12 and cypress-cucumber-preprocessor 4.3.1 in an angular 13.0.1 application. My tests are running fine a

How can I add put inputs into a column? I have a ref down below of what I am trying to do

<mat-form-field appearance="standard"> <mat-label>Name *</mat-label> <input matInput [(ngModel)]="currentUser.username"> </ma

Why My custom colors are not working in my Angular material theme?

I trying to add more color to my angular material theme, I've added the success color in my style.scss by the map.deep-merge fucntion // Custom Theming for Angu

ERROR Error: Uncaught (in promise): FirebaseError: Firebase: Error (auth/argument-error). I already enabled my google sign in firebase. How can i fix

I'm trying to use google sign in from firebase in my ionic angular project, I follow the tutorial, the compilation was good but when i click the sign in button

provideMockStore with MockBuilder in ng-mocks

How to overrider the selector value in MockBuilder provided with provideMockStore In general with Testbed beforeEach(() => { TestBed.configureTestingModul

Angular MatStepper fails to recognize cached values from two str arrays (but successfully recognizes values from another str array)

I have a MatStepper that's used to navigate to the next page of a signup flow. I also have a method that loads values from a cache if it's available, and if so

Angular material form field input - green border when input is valid

I am trying to change the border of a mat-form-field to green when the input is valid without overriding CSS classes and I was sure I am missing an easy trick.

ASP.NET Web API return excel file to client

I have C# api code as below. It work correct when i run on visual studio and deploy to iis server. I consume this api by javascript or Angualar on production Fr

How to get bearer token from auth0 Angular

How Should I get the Auth0 bearer token in Angular. I am currently using Auth0 SDK and AuthModule to set it up. @Injectable() export class TokenInterceptor impl

Validation inside FormGroup array for Select Angular

I'm having a FormGroup inside which I have multiple controls and one among the controls was Select. I could validate other controls for the required field but n

Ngx Pagination-Jump to Specific Page

I would like to create ngx pagination in angular 8 specifically jump to exact page. Ex Go To (Text box comes here) . I have 10 pages when user tries to enter 3

Best strategy for localizing a mixed application: Razor, Angular, Typescript, .NET and database layer

Our application is a mix of: Front-end: Asp .NET with Razor pages (parent application), and some Angular Pages (displayed in an iFrame) along with typescript.

How to get values from FormArray - Angular Reactive Forms

SectionService form this.form = this.fb.group({ siteDestinationSectionsList: this.fb.array([this.siteDestinationSectionsListGroup]), // removed rest

How to disable typing but allow copy and paste in a text box in Angular 8?

I want to restrict typing in a text box but I need to paste anything inside that textbox in Angular

Angular <p> displayed by *ngFor won't float to the right

I have this chat in which I'm trying to apply styles to the "chat-container". The messages are displayed with Angular's *ngFor as follows: <p *ngFor="let m o