Linked Questions

-1 votes
1 answer
379 views

I'm trying to create an incrementor and pass it a value that the user can increment or decrement. I've created the child component and passing it the value. I can change it, etc within the child ...
Joe Starnes's user avatar
9 votes
4 answers
22k views

I'm learning/working on Angular project, I've done a lot and I try to do the things "right way", so now what i want to do is this: I want to get the variable (output) from child component to parent ...
nikagar4's user avatar
  • 850
2 votes
2 answers
10k views

I have a table that contains users records. There is a column for "tags" that allow you to tag the record with one or more values. For this, I created an edit button on the row. Once clicked, I show ...
SBB's user avatar
  • 9,050
4 votes
1 answer
6k views

I have a code in App component.html like this. <form> <input #box1 (blur)="onKey1(box1.value)" type="text" name="username"> <p>{{box1.value}}</p> </...
roopteja's user avatar
  • 743
-2 votes
1 answer
4k views

I have a form in my Parent Component which has a hidden input for new password and an edit password button. In the Child Component by clicking on the edit password button, a matdialog will be loaded ...
Sendhil Kumar's user avatar
0 votes
2 answers
4k views

I created two components and named it as parent and child. And I linked these components at app.component.html. Now I have an array of objects in child component, My goal is to show those array of ...
user avatar
1 vote
1 answer
3k views

I have the parent component from where I am opening a modal. (child component). parent.ts file:- @Component({ selector: 'app-parent', templateUrl: './parent.component.html', ...
NoobCoder's user avatar
  • 503
0 votes
2 answers
2k views

I am trying to pass an input value from a select input that has a (change) event associated with it from child component to parent element. Would like the variable to get updated every time the ...
Travis Michael Heller's user avatar
1 vote
1 answer
1k views

I work on the team who using Angular, I was using Vue before, I have learned the Angular 7 so far for 5 days, and my team still using Angular 4, I want to know how to set up the prop in child to ...
Zum Dummi's user avatar
  • 233
0 votes
2 answers
769 views

I have two components, I want to print the text in child component from the parent on click. Parent Component : import {Component, OnInit, ViewChild} from '@angular/core'; @Component({ selector: '...
JEET ADHIKARI's user avatar
-2 votes
1 answer
879 views

I have followed the approach mentioned at the the below link Pass data from child to parent component Angular2 but when i try to assign the value a variable in parent after emitting the event from ...
V Pradeep Kumar's user avatar
1 vote
1 answer
550 views

I have a child component that takes an @Input value from a dropdown box of a parent component. This value has an array of objects that I want to pass as the data source to a table so I need to ...
Greg's user avatar
  • 13
0 votes
1 answer
290 views

I am facing some trouble in relflecting in my parent component if an item has been enabled or not based on the selection made in the child component. I am displaying my child content through a ...
bluePearl's user avatar
  • 1,257
-2 votes
1 answer
321 views

Actually I have a component typescript file having two classes one for normal component and another one for mat-dialog, I got the data from http, but I want to pass to parent component. I want to ...
Abdul Mohaimin's user avatar
1 vote
1 answer
270 views

being very new to Angular 2 ( and Angular in general ) , I've encountered a situation with my colleague where he decided to go for the template driven approach and me for the reactive driven approach. ...
D. Zaraki's user avatar