For questions regarding programming in Angular specific to version 12. Please include all relevant tags on your question; e.g.,[Angular], [TypeScript], etc.
Questions tagged [angular12]
664 questions
-1
votes
1 answer
Angular - A function defined in one component, that generates dynamic child components can’t be called in a separate non related component
Update to this in this new question.
I have followed this guide which I found by finding this question but then being pointed to this question as a fix for some of the issues that occurred in the prior question. The first link code example allows me…

SneakyShrike
- 723
- 1
- 10
- 31
-1
votes
1 answer
I am trying to upgrade angular 12 to 14 but I am getting this issue in GitLab pipeline ng-toolkit/universal
npm ERR! code ERESOLVE
npm ERR! ERESOLVE could not resolve
npm ERR!
npm ERR! While resolving: @ng-toolkit/universal@8.0.3
npm ERR! Found: @angular/common@14.1.0
npm ERR! node_modules/@angular/common
npm ERR! @angular/common@"^14.1.0" from the…

Mani kandan
- 17
- 5
-1
votes
1 answer
Angular calling API Multiple time and creating a Result Table
Im working on an Angular Project, We have 2 APIs.
First GET API lists, all the student details (name, admission_no, class etc..) and the other displays one student details (fee_payment, payment_amount etc..) on POST API call with student…

Bal Sankar
- 17
- 1
- 5
-1
votes
1 answer
How to get output eventemitter boolean value in parent ts file?
I have below code in my child component
@Component({
selector: 'app-child'
})
export class ChildComponent {
@Output()
dataDeleted: EventEmitter;
constructor() {
this.dataDeleted = new EventEmitter();
…

Mike
- 13
- 9
-1
votes
1 answer
How to return last day of month in ngx-bootstrap datepicker angular
Below is my code where I need to display calendar with month and year and when user selects month and year it should display last day of that month with year. I am able to get the date as 01 June 2022 using below code, where as I need date as 30…

tripti tiwari
- 47
- 5
-1
votes
1 answer
Why doesn't my else work with ngIF in Agular 12?
I am brushing up my Angular knowledge and I came across an "else" to use if ngIf. In reality I think it is easier to use "valor !== false" to simulate an else. But if I need to give assistance in a code that uses I want to be prepared.

Diego Alves
- 2,462
- 3
- 32
- 65
-1
votes
1 answer
If there is a word in the results that match the word I am looking for in the array, how can I show it in color?
for example i am searching "TEST" and in the results "THIS IS A TEST" if it writes i need to color the background of TEST text in this result
here is my code;
this.searchControl.valueChanges
.pipe(
distinctUntilChanged()
)
…

Cem Özbey
- 9
- 3
-1
votes
1 answer
Getting undefined value from service in angular 12
I am new to angular and I'm getting undefined value in variable after calling he service which gets the value from other component.
I am trying to send file data from one component to other using service but at the receiving component I am getting…

Ashish_more
- 45
- 7
-1
votes
2 answers
Angular - Error when trying to overwrite sortingDataAccessor
I want to overwrite sortingDataAccessor to make sorting my table work with all of its columns. However, I keep running into error TS7053: Element implicitly has an 'any' type because expression of type 'string' can't be used to index type…

Chris
- 1,417
- 4
- 21
- 53
-1
votes
1 answer
How to properly implement wrapper around http.get in typescript?
First of all, my Typescript knowledge is very low, so I assume that this is a somewhat basic question. In the frontend of my web application, there are two parameters which I need to provide in 99% of all http get-requests. To make my life a little…

Chris
- 1,417
- 4
- 21
- 53
-1
votes
1 answer
Unexpected token e in JSON at position 0 Angular 12 .Net 5
I am getting really weird behavior trying to call the Controller in .net 5 MVC project from the angular 12.
I am getting 200 status code and even get the data that I suppose to get but at the same response I am getting the error message…

Stanislav Mozolevskiy
- 21
- 1
- 1
- 8
-1
votes
1 answer
Type FullCalendarModule does not have 'ɵmod' property
I am using a full calendar npm package using angular. I am getting the following error.
Type FullCalendarModule does not have 'ɵmod' property.

Tauseef Arshad
- 583
- 5
- 13
-1
votes
2 answers
How to decrease the barthickness in ng2-charts?
barchart
html file
-1
votes
3 answers
How to add conditions on static JSON object using Type Script
I am working an application in which I created a static JSON object array which contains parent child data. I am showing that data into dropdown list what I want to achieve here is I have different records whose status will be different like…

Tauseef Arshad
- 583
- 5
- 13
-1
votes
1 answer
How to run Angular 12 project using Angular CLI 13
I downloaded an Angular 12 project and I am trying to run it using Angular 13 (latest version). Thus I have problems thrown when I try to run it it. Even if I tried to use npm install, some dependency issues are thrown
Errors thrown when running…

Mlle 116
- 1,149
- 4
- 20
- 53