All Questions
20,444 questions
1
vote
1
answer
51
views
Is there a way to disable a lazy loading in Angular v19 standalone components?
In older versions of Angular, where we used to have module-based applications, it would load a module once and even if you close components that are exported by that module - it wouldn't load that ...
0
votes
1
answer
30
views
NavLink in React JS not working as expected?
So, I am working with ReactJS. In Sidebar ) used NavLink but when i am working with nested routes it is not working as expected.
<li>
<NavLink
role="button"
...
1
vote
1
answer
30
views
`touched` member is not accessible when creating a reactive from using angular
<div class="container mt-5">
<!-- Form Title -->
<h1 class="form-title text-center">Tixsim</h1>
<!-- Form Section -->
<form [formGroup]=&...
0
votes
2
answers
36
views
When printing a web page, how to make overflowing content print on multiple pages?
I'm working on an Angular project. I need to add printing support. The specific page that I need to print has, within it, a content div that is scrollable. When I print the page (using Chrome, Ctrl+P),...
1
vote
2
answers
28
views
disable p-dropdown option when options are display in ng-template for looping them
i am trying to disable option in p-dropdown but i use ng-template for looping the options
here is my code
any suggestions ?
thanks
<p-dropdown
...
1
vote
1
answer
27
views
Angular P-FileUpload ng-template not working
I am trying to use p-fileupload in angular for the pdf files, when I select the file, I want to put the pdf image along with the file name. For that, I created the ng-template for the file upload but ...
0
votes
1
answer
60
views
<section> or <article> as containers of Angular components for Accessibility and/or SEO purposes?
I’m working on an Angular project and want to ensure that my components follow HTML semantics for both Accessibility and SEO purposes, but only when is need because I don't want to add extra code.
...
1
vote
1
answer
34
views
Angular DI for standalone components with importing module on parent component and child component (NullInjectorError: R3InjectorError)
Given the following structure:
a parent standalone component named AppComponent
a child standalone component called TableComponent, which should be a wrapper for a generic table
TableComponent ...
1
vote
1
answer
45
views
Show or hide app-root depending on ngIf on Angular 12+
I am trying to show/hide a development page from most of people.
I changed the index.html like:
<!DOCTYPE html>
<html lang="en">
<head>
</head>
<body>
<app-...
1
vote
1
answer
68
views
How can i make the ::ng-deep work only for one component
<igx-dialog igxOverlayOutlet #variantDialog class="variant-dialog">
<div class="dialog-content">
<div class="variant-options">
<div class=...
1
vote
1
answer
50
views
Page break issue with html2pdf.js
I am using html2pdf.js for pdf previewing the dynamic html code from the text editor in angular v17.
Here is the code I am using for previewing the pdf
generatePDF() {
this.replacetext = this....
2
votes
1
answer
56
views
How to make component which is generated by router outlet to be full width and height. Angular
<div class="min-h-screen flex flex-col">
<app-header></app-header>
<div class="flex-grow">
<router-outlet></router-outlet>
</div>...
1
vote
1
answer
35
views
How put an id(like index value) on a tr
I need to put an id that represent that number of row in my tr
I put this code
<tr mat-row *matRowDef="let row; columns: _columns;let i = dataIndex;" [id]="i"></tr>
...
0
votes
0
answers
47
views
the virtual scroll CDK with dynamic size (Angular 18)
I use CDK virtual scroll to optimize the display of my data. I've even tested CDK experimental with autosizing, which obviously doesn't work in Angular 18.
My items have a minimum size of 26px, which ...
0
votes
1
answer
49
views
avoid 'cannot read property of undefined' errors
I installed frxjs-Ngx-Timeline via (This is the demo)
npm i @frxjs/ngx-timeline
It installed latest version, i.e., "@frxjs/ngx-timeline": "^19.0.0".
This is my HTML code:
<...