Questions tagged [angular-output]
7 questions
1
vote
1 answer
Testing Angular Output without spying on the component instance
Let's suppose I have the following component:
@Component({
selector: 'app-dumb',
template: ''
})
export class DumbComponent {
@Output() onIncrement = new EventEmitter();
…

th3n3rd
- 375
- 1
- 3
- 20
0
votes
1 answer
Max Stack Call Size when adding parent's tamplate into child's HTML template in Angular
This is the child's template:
Degrees:
Type:

Edmon
- 1
- 1
0
votes
0 answers
I use EventEmitter to trigger an output But I got Argument of type 'Event' is not assignable to parameter of type TodoModel
I'm reading a book about angular and I try to write a sample (and simple) code emit an event with an output. Basically, I have a list of TodoModel, displayed in my child component, with a button to delete one TodoModel.
On my child component I have…

Jean François Manatane
- 897
- 1
- 11
- 21
0
votes
1 answer
The reason for using the eventemitter to send data from the parent component to the child (Angular)
While learning Angular, I realized that there is no need to use eventemitter to send data from the parent component to the child component, while the eventemitter must be used to send data from the child component to the parent component.
Is this…

user16142561
- 3
- 1
0
votes
1 answer
Why doesn't a value update correctly in object and html?
I am making an itinerary generator, all the activities have their duration (in minutes) and the itinerary have a start time so when I generate the itinerary I update the hour in base of activity duration and show the updated hour in the next…

Leonardo Esquivel
- 57
- 6
0
votes
0 answers
Angular: How I can pass a value to child component after successful output eventemitter
How I can setvalue to true in angular after successful emit operation. How I can pass a flag to app.child.ts after successful api call in parent component?
app.parent.html
0
votes
0 answers
How to dynamically create @Output on an Angular Component?
For the sake of simplicity, Let's say we have a MyComponent with an @Input() eventName = 'signal'.
I would like to use the value signal as the name of a dynamically created EventEmitter. Which I can use as a regular @Output as so:

Alex Pappas
- 2,377
- 3
- 24
- 48