Skip to main content
The 2024 Developer Survey results are live! See the results

Questions tagged [angular]

Questions about Angular (not to be confused with AngularJS), the web framework from Google. Use this tag for Angular questions which are not specific to an individual version. For the older AngularJS (1.x) web framework, use the AngularJS tag.

0 votes
0 answers
10 views

Drag and drop issue in Angular

I could not trigger ondrop function. Here is my code - can anyone help with this? <div class="canvas-container"> <canvas #canvasElement></canvas> <div class=&...
0 votes
1 answer
31 views

When clicking print button print dialog box is not appearing to some users

When i am going to clicking print button print dialog box is working fine with my side, but some users are complaining they are not getting print dailog after clicking print button into production ...
0 votes
0 answers
6 views

Angular/PrimeNG/PrimeFlex - Left and Right Panel Heights Hidden Beyond Card Body

I am working on an Angular project using PrimeNG components, and I'm facing an issue where the left and right panels of a p-card are extending beyond the height of the card body and getting hidden. I'...
0 votes
1 answer
19 views

Hide page count from the go to section of the pdf toolbar when pdf is opened in browser

From java side I am converting tiff images to PDF like below. Rectangle pagesize = new Rectangle(maxWidth, maxHeight); Document document = new Document(pagesize); PdfWriter.getInstance(document, ...
2 votes
1 answer
9k views

Angular 2 New Router - Routes not displaying in <router-outlet></router-outlet>

Pretty new to Angular 2 and not fully up to speed on the new Router. I've followed the example from the Angular Documentation, and while I'm not getting errors, my components aren't displaying in the ...
3 votes
1 answer
10k views

"npm install @azure/msal-browser @azure/msal-angular@latest" but nothing inside of node_modules

I'm trying to include Azure AD for the login, but after running npm install @azure/msal-browser @azure/msal-angular aswell as npm install @azure/msal-browser @azure/msal-angular@latest no new entries ...
0 votes
1 answer
52 views

After invalid ASP.NET MVC server login, how can I capture the error text in the returned Json response and display in the Angular client?

Angular 9 Client login page I want to display the specific returned error message in the <h4> element, instead of the generic message that displays currently. Note: I have updated the page with ...
5 votes
2 answers
1k views

How do you read the version hash of the current PWA in Angular?

I'd like to be able to read the currently active hash of my Angular PWA. However I can't see any mechanism for doing that. The SwUpdate object provides observables that allow you to read the current ...
0 votes
2 answers
19 views

Angular Material 3 Custom Theme Not Working (Nx monorepo)

I've got this Angular app within an Nx repo. After npx nx run testapp:serve I'm getting the following error: ./src/app/shared/design/testapp.scss - Error: Module build failed (from ./node_modules/sass-...
1 vote
1 answer
2k views

Form Control Async validation issue

I'm trying to implement an async validation on Angular2 but when I tried to input something for some reason the debounce doesn't work. It triggers multiple times depending on my input. Also on load my ...
1 vote
2 answers
1k views

Row Expander template does not work in PrimeNG DataTable

I'm trying to use use PrimeNG templates for the first time and I can't figure out how "let-something" works. I tried various combinations I found in other SO questions, but all of them produce with ...
6 votes
4 answers
12k views

Ag-grid sticky header

So my ag-grid resize itself because my row height is also dynamic. So for height I am using [style.height.px]="beta" and this.beta = document.getElementsByClassName('ag-full-width-container')["0"]....
1 vote
2 answers
584 views

Handle Angular monorepo with Transloco

We use a Angular v15 monorepo that contains several applications and libraries. The monorepo and applications are created using the directions from the Angular CLI documentations. The libraries are ...
0 votes
2 answers
21 views

Wait for a response before loading template

I have an angular application that makes a server call on ngOnInit() and returns a result. I then use the result to populate a model in my template. My template is loading before the call is finished, ...
19 votes
5 answers
17k views

NullInjectorError - Root standalone component does not import HttpClientModule properly

I have an issue, I want to rewrite my app code and change main module to main root standalone component pointed in main.ts. All works fine but I have an issue with HttpClientModule. I am using ...

15 30 50 per page
1
2 3 4 5
20397