17,515 questions
-1
votes
1
answer
30
views
Toggle button doesn't show chart.js from db.json data in my angular app
I'm starting to learn how to build angular apps and I need to implement a toggle button that show/hide 2 charts, one chart has static data and the other on call data from a db.json file through a ...
0
votes
3
answers
55
views
New @for Directive in Angular – Dynamic Array Issue
I'm creating a dynamic FormArray within a FormGroup. The only change I've made is switching from *ngFor to the new @for. The issue occurs when I try to remove an element from the FormArray.
Previously,...
0
votes
0
answers
21
views
Angular migration from 1.2 to 1.8 issue
I'm new to Angular and I got the task to migrate an old application using Angular 1.2 to Angular 1.8, I'have been able to solve most of the issues except for this one, as you can see in the following ...
1
vote
1
answer
28
views
angular custom directive don't response to host listener separately
I create a custom directive for time input and it work perfectly but if I wand to use multiple of it in same page the changes on each one apply on all of them.
how can I use my directive and they work ...
1
vote
2
answers
142
views
Angular Project Migration from 13 to 19 problem with "ng-flat-form"
I'm currently on version 14, and I fixed a few bugs that were there and I was able to run the application, however when I started migrating to Angular 15 I got these warnings and errors
Package "...
0
votes
1
answer
109
views
How to get the full HTML and CSS (computed styles) of a component in Angular with ViewChild?
I have a component in Angular, and I need to extract the full HTML content along with the computed CSS styles of a specific element using ViewChild. I'm currently able to get the HTML content using:
@...
0
votes
0
answers
36
views
I am using search box to search for books in my library management system app built using angular
On the navbar I have a search box for searching books in the app, I am using search button for it so as to show results only when search is clicked. But after the search you have to manually clear the ...
0
votes
1
answer
69
views
How to Apply a default attribute to an angular component
I'm trying to format some fields into neat rows and columns, and because I have to match some other components with very specific formatting, the html that works looks like this:
<div fxLayout=&...
0
votes
0
answers
36
views
AngularFire: No Provider for Firebase Options Error Using APP_INITIALIZER with AWS Secrets Manager
I'm trying to initialize Firebase in my Angular application by fetching the Firebase config from AWS Secrets Manager before the application starts. I've set up the initialization using APP_INITIALIZER ...
0
votes
2
answers
130
views
Angular textarea does not update data on time but the console shows it correctly
I use service socket.io to emit and receive data. When the send button is clicked it emits data and shows "FENEmitInfo" then receives the data and shows "FENSocketioGetCnt" and &...
0
votes
0
answers
31
views
@ContentChild to access a Directive used in a native dialog is undefined
I have created a repl with working code.
The problem is in dialog.component.ts, line 46
this.content is console logging out as undefined
https://replit.com/@Sonnerz/GlumTestyBrains#src/app/dialog/...
0
votes
0
answers
31
views
Pass custom message to mat-error custom directive
I've use a solution in another thread to display error messages. However, there are cases where I put a string message in the mat-error tags and I would like, in those case, to display this message if ...
3
votes
1
answer
50
views
ui-select filtering only one field
I'm working on an AngularJS application and I'm using ui-select to allow users to select multiple roles and tabs. The filtering works perfectly for the tabs, but for some reason, it's not working for ...
0
votes
1
answer
81
views
Is there a way to pass a ng-template through another ng-template in angular?
I am running into the issue where I can't pass a nested ng-container in angular.
This is not the exact problem but in general the issue I am running into.
parent.component.ts
@Component({
selector: '...
0
votes
1
answer
419
views
Error NG0303 Can't bind to '*ngIf' since it isn't a known property of 'nav' - Angular 18
I am creating a project in Angular 18. For now, I am only working on the frontend, but I need to create a "test" login. The problem I have is that the navbar was showing in my "login&...