17,474 questions
0
votes
0
answers
48
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
47
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
256
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
159
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
1
answer
105
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=&...
3
votes
1
answer
67
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
124
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
487
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
286
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
120
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 ...
2
votes
3
answers
176
views
Angular Save Navigation Operator not working as expected
I'm running into an issue where the Safe Navigation Operator (?) is not working as intended.
task = {
title: 'Review applications',
assignee: null
};
test = this.task.assignee?.name;
Produces ...
0
votes
1
answer
329
views
Data / token sharing issue from angular micro-frontend one project to another project
Hi i am stucking the data sharing/ token sharing in another project in angular standalone microfrontend. Please provide your suggestion. Data will be get it second times. not get initial time.
SEND ...
1
vote
1
answer
40
views
Angular write a common function for multiple selected options
Can you sugguest how to common function for both two selected option by event
$scope.selectionOpt = function($event){
alert($event.target.value);
}
<form>
<...
0
votes
1
answer
445
views
Webpack Module Parse Failed: Unexpected Character '@' with Angular and Swiper
I'm currently working on an project in ionic (angular) and attempting to include Swiper (version 11.1.0) for sliding elements. However, I encounter the following compilation error:
./node_modules/...
1
vote
1
answer
55
views
Why the ng-pristine class in AngularJS form always returns true
Why the ng-pristine class in AngularJS form always returns true.
enter a value in the input field and click the button, it does not return false, it returns true.
test.html
<div ng-app="...