Skip to main content
Filter by
Sorted by
Tagged with
2 votes
1 answer
52 views

I have following array: [ { fileName: "test.pdf", fileUrl: "https://test-url1.com/test.pdf", isDeleted: true }, { fileName: "test.pdf", fileUrl: ...
Sam's user avatar
  • 146
0 votes
2 answers
80 views

I am getting array in this way, check attached image. Now I am trying to display edit icon as this below : { header: 'Edit', field: 'id', view: (value: string, obj: any) => { ...
Sam's user avatar
  • 146
0 votes
1 answer
354 views

Adding the Rows. Here getting the quantity and the price value using the change event. ` <div class="row"> <div class="col-md-6"> <...
Onella Natalie's user avatar
0 votes
1 answer
1k views

Im currently trying to show the data of an employee after he loggin to his account, i can get the data of the employee from the backend by his username and i can console logged it , but when i assign ...
Fouad_Aurag's user avatar
0 votes
1 answer
189 views

This Error is coming when I am trying to show the data from an get api on html template using ngfor in angular ERROR Error: Cannot find a differ supporting object '[object Object]' of type 'object'. ...
Kishkin's user avatar
0 votes
1 answer
1k views

I have a form that I fill out using Angular's FormBuilder. This is the FormBuilder representation in the component typescript file: constructor(private Form: FormBuilder) { } AddStatusBoxForm = this....
SneakyShrike's user avatar
1 vote
1 answer
1k views

I am trying to show and hide the search filter input field which is basically my form field with the check of a checkbox that is in my search filter button. I am using *ngIf here to show and hide the ...
Vishal's user avatar
  • 21
0 votes
3 answers
658 views

I am using a Indian states data array like the below in various components of my Angular project. I know one way is to add it as a collection in backend database. But I would not like to make an API ...
hemant's user avatar
  • 489
2 votes
1 answer
1k views

My component has the property transfers$ that is an observable that can comes with an array or an object that contains the error message. I can only input [items] when transfers$ is Transfer[]. But ...
Doug's user avatar
  • 149
0 votes
1 answer
140 views

Html file: // First Table has array data --> name,netCash,phonePay2,card,cellPay2,total2 <table class="table table-hover table-bordered table-striped table-sm"> <thead ...
user avatar
1 vote
1 answer
75 views

This is my ngOnInit ngOnInit() { this.formGroup = this._formBuilder.group({ basic: this._formBuilder.array([this.basicGroup()]), experience: this._formBuilder.array([...
Ananthu A Nair's user avatar
0 votes
1 answer
1k views

I have two arrays partyCtx and planList partyCtx looks like this: partyCtx: Array(5) 0: {planCode: "PLN00062", planShortName: "Federal Home Loan Bank of A", employerPartyID: "...
Margerine's user avatar
  • 183
0 votes
1 answer
700 views

I have parent component and child components in my project and array of objects called from API in parent component. Parent Component public Questions = []; ngOnInit(): void { this.loadQuestions(...
Prajwal Kamble's user avatar
1 vote
1 answer
2k views

I have an array of string, and want to filter out a particular string after some operation. But, it seems I am doing something wrong there. this.displayUser.followers.filter(userId=>userId !== this....
Daisy's user avatar
  • 73
0 votes
0 answers
328 views

I want to display the items from the "cabinet" array in a dropdown. I've tried the below code, but it's not working. Please help. Component.ts File: getProductDetail(id: string) { ...
Riyasree's user avatar
  • 776
0 votes
2 answers
993 views

I have data that looks something like this plans:[ { "planName": "PlanA", "planCode": "PLN001" }, { "planName": "PlanB", "planCode": "PLN002" }, { "planName": "PlanC", ...
Margerine's user avatar
  • 183
0 votes
1 answer
2k views

This is a little bit harder to explain, but I will do my best. I have a component called feed, and the component it expects an array(feeds) of objects(feed). I have a template which i display all the ...
Csibi Norbert's user avatar
2 votes
1 answer
4k views

I have this interface export interface Student { cf: string, firstName: string, lastName: string, dateOfBirth: Date, description?: string, enrollmentDate?: Date } I want to ...
dcfg's user avatar
  • 900
1 vote
1 answer
1k views

I am creating an order entry form where we shall store both master and details data. Below I am showing you my entity details which wrote in typescript. export interface IOrder { id: ...
Shiv Shankar Maiti's user avatar
0 votes
1 answer
84 views

I'm making CRUD app in angular 6 but when i go to edit page i want to pass data from array to the input fields on that page, but when i save that page data should be again in the array (you can see on ...
Darko's user avatar
  • 75
1 vote
1 answer
1k views

Please check the video: https://screencast-o-matic.com/watch/cqQQj2tA22 I'm adding dynamically objects to an array and would like to set the values once the objects are added. Now when I'm adding a ...
Laziale's user avatar
  • 8,315
2 votes
1 answer
3k views

I'm trying to bind viewmodels to a view through component. Initially I did this in the component and it was almost working: model: any = { TenantId: '', CustomFieldName: '', ...
Laziale's user avatar
  • 8,315
2 votes
1 answer
4k views

Im looking to inject the data from a ngfor loop on the parent component into a child component. This child component is supposed to render a modal with the data of the right element in the parent's ...
BEvo's user avatar
  • 379
1 vote
2 answers
10k views

I have a json data set with arrays from my ASP.net Core web api, i want to show that data in angular html page. can you help me. angular 7 cli home-page.component.ts ngOnInit() { this....
Thevin Malaka.'s user avatar
-1 votes
3 answers
70k views

export class ResultComponent { students: AdmissionFormData[] constructor(private adStudent: AdmissionFormService) { adStudent.adFormGet().subscribe( x => this.students =...
Moumita akter's user avatar
0 votes
3 answers
7k views

I am attempting to do a get call in angular the call itself works as I can put a log in the subscribe and see the returned data the issue I am having is I can't seem to assign the data to my existing ...
bobthemac's user avatar
  • 1,192
4 votes
3 answers
9k views

I have two array called 'persons' and 'persons2', The 'persons2' array would to be copy of 'persons' array, But the problem is when I copy it, and I want to change the second array, the first array ...
Jack's user avatar
  • 89
0 votes
1 answer
277 views

I am new to angular. Learning Angular 6. Trying to fetch data from a database which is working totally fine. But I am trying to get the length of the returned array also. Problem is the code for ...
Shubhajit Halder's user avatar
0 votes
1 answer
2k views

I have used a material dropdown multiselect through which the users can select multiple data. when the data is being sent to the component the data is recieved in an array format which is not accepted ...
Atul Stha's user avatar
  • 1,534
0 votes
2 answers
49 views

I have a component that is using the cordova BLE plugin. When the scan starts to find devices it pushes each device found to an array of objects. In my template I use *ngFor to loop through the ...
Jamie Barker's user avatar
2 votes
1 answer
574 views

I have the following list of students: students = [{name:'Jordan', passed:true}, {name:'Kyle'},{name:'Jess'}, {name:'Sam', passed:true} ] I want to be able to, in an HTML ...
Rolando's user avatar
  • 63.3k