All Questions
Tagged with angularjs-directive angular
495 questions
-1
votes
1
answer
32
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,...
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
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&...
0
votes
3
answers
146
views
My data from child component is not showing up in the parent component
I have a json file, then I create a card component where that data would be displayed, then I create a parent component and template where I want to iterate through the data and generate a number of ...
0
votes
1
answer
98
views
Does child component re-render or re-initialize in Angular?
I am new to Angular(14) and i am facing a issue. when i update a property of parent component which is an array then the child component get re-initialize(ngOnInit function is running).
Facing this ...
0
votes
1
answer
77
views
How to convert base64format to the word document preview in angular [closed]
Does in angular do we have any library ?
i was looking for some examples but i didn't found any.
I have found a library ngx-doc-viewer it has a url but i have base64 which i need to transform to word ...