All Questions
45
questions
0
votes
0
answers
435
views
Create a custom dropdown component with checkboxes in angular
I want to create a dropdown using angular multi checkbox, but I'm not sure how to do it in the "Angular way", that component will use in some places as a form control.
<app-custom-...
0
votes
2
answers
989
views
Display Reactive form data on same page after click on Save button in Angular10
I have a reactive form and once user click on Save button it should show the save data on the same page in a block and once user click on Submit it should call the api.
How can I show the reactive ...
0
votes
0
answers
189
views
after cloning the object of form group the get method is not a function
I am clone a object like below since if I do some operation in the parent component the child component is getting triggered which should not be the case so cloning the object.
result is the data ...
0
votes
2
answers
5k
views
How to populate data in ngx-quill editor with formatting maintained?
I am able to create ngx-quill editor in angular.
I am not able to understand how to populate the data in the editor though.
quill editor returns html and well as delta object. I dont see any option on ...
0
votes
2
answers
414
views
how to assign latest request data to table in angular
I have 3 tabs in one page component. Once we click on tab, passing tab key to API to get filtered data based on tab key.
this.taskService.getAllTasks(this.tabKey).subscribe((data: Tasks[]) => {
...
0
votes
1
answer
2k
views
Getting checked items of tree table in an array
I am working on angular app. I am using primeng tree table. My code is as follows:
<p-treeTable
[value]="files5"
[columns]="cols"
selectionMode="checkbox"
[(...
0
votes
0
answers
46
views
Is there any concept in angular to implement below requirement?
I have an input file upload type which is designed as below image.
When I upload the file the upload document label is getting overridden by fileName as shown in the below image.
What I want to do ...
0
votes
1
answer
1k
views
Accessing parent component method from child
I am working on an angular app. I have a method in the parent component which returns a response.
parentComponent.ts:
myMethod(id) {
//API call and return response on the basis of id
}
I have many ...
0
votes
1
answer
1k
views
how to send large amount of data from parent to child in angular?
I've a parent component in which I'm getting an object via API call. I'm then using this object in a function to get the required data. I also need this exact data in the child. This data is very ...
7
votes
1
answer
3k
views
Create an angular library which can be consumed by lower versions of angular project
I have some common components in my angular 12 application which I am planning to create as an angular library so that other applications can also use it. We have some applications running on lower ...
-1
votes
1
answer
798
views
How to do validation for date field in angular
I need validation for the date field in angular8 or 10
Format- DD/MM/YYYY
Conditions:
->First, if the user enters [32] it should show an error message because max dates are 31 only every month.
-&...
-1
votes
2
answers
2k
views
How do I pass an id and object on click of a button from one component to another component' s function in angular?
I've 2 components in my app. On click of a button in one component, I want to call a function in other component. The function takes an id as an argument and needs an object. I am able to send either ...
-2
votes
1
answer
115
views
How do I create a module above App module in angular 12?
i have a Login module which contains login.html.
i want login to be the default module and login.html as the default opening page.
1
vote
2
answers
743
views
How to define a model class in angular8(TypeScript) or above for nested JSON response coming from SpringBoot backend code
I want to define a model class in angular8 for the below nested JSON response.
JSON Response:
{
"message": "All Users fetched",
"status": "Success",
"...
1
vote
0
answers
20
views
RROR Error: Cannot find control with path: 'IncomeList -> verified'
I am creating dynamic reactive form using Angular 10, it has the nested structure, when I try to bind the form to the template I have the below errors
**The main form has below structure
...