Use in directives and components to emit custom events synchronously or asynchronously, and register handlers for those events by subscribing to an instance.
Questions tagged [angular-event-emitter]
171 questions
1
vote
1 answer
Angular 6 output info from the component when another component is clicked
I have 3 components:
1. List of clients
2. Client (name)
3. Client's full info (name, age, address), that must appear when I click on the user item.
And I can't understand, how can I get info (how to show the third component) about a specific…

tanya210392
- 45
- 4
1
vote
2 answers
angular Cannot emit array
In DateRangeComponent I'm trying to emit array on button click to another (ViewerComponent) component using EventEmitter and Output decorator.
There is a getData() method in DateRangeComponent where EventEmitter emit an array from service.
@Output()…

corry
- 1,457
- 7
- 32
- 63
1
vote
1 answer
Obseravables Service - Missunderstanding / Best Practise
I'm struggling around with the observe service approach between two components. I have a profile component that includes a settings component. Both uses the user.service where the provider is defined within app.module.ts. The provider isn't defined…

vitalragaz
- 308
- 1
- 10
0
votes
2 answers
How do I pass the boolean value from child component to parent component so that I can use that value to enable/disable the sibling child component?
I have this parent component
-person.component.html
…

cs55
- 7
- 4
0
votes
2 answers
My Angular's Output Event Emitter handler isn't triggered
I'm trying to change a part of my website when someone click on a svg picture.
That's why I used EventEmitter : to send the information of which part might be shown.
First, the code of my SVG triggering its own event on a click, and emitting to its…

Neost
- 1
- 1
0
votes
0 answers
how to make isLogin true after login is done?
I am not being able to get isLogin value boolean value from login.component.ts after the login is completed.
I already tried @output EventEmitter. The problem with EventEmitter is that, it is called in selector of parent component. But in…

mrpratik
- 21
- 5
0
votes
2 answers
Can't get Angular 2 table component to pick up on changes to array in shared service class
I want to display an array of data fetched by a service in a table component after the service is triggered by a button elsewhere. I've tried to do it using ngOnChanges() but that doesn't appear to notice any changes to the array in the service…

public_void_kee
- 65
- 6
0
votes
0 answers
Angular custom click-and-hold directive problem
I created a simple click-and-hold directive that is supposed to send events when a user clicks-and-holds an element for some time. Here is the directive code:
import { Directive, EventEmitter, HostListener, Input, Output } from…

joker876
- 81
- 1
- 7
0
votes
0 answers
Angular: wait for all event handlers to finish
I have a component for editing a thing that spawns a number of child components to edit related other things, e.g., a superhero and a list of their powers, and a list of their costume colours.
The parent has a property
save:…

Richard Barraclough
- 2,625
- 3
- 36
- 54
0
votes
1 answer
Spring - Angular - SseEmitter only works on local machine
I'm using event emitters to notify my clients of a change in their company. My production environment is on the google cloud.
For that purpose on login, I create for each one of them a SseEmitter via this endpoint:
@GetMapping(value =…

César Castro Aroche
- 595
- 1
- 9
- 20
0
votes
0 answers
Angular js output event emitter method not getting called
The method triggered through output event emitter is not getting called.
This is my output event emitter:
@Output() onEditTask: EventEmitter = new EventEmitter();
This is my view:

Abdullah
- 307
- 2
- 6
- 16
0
votes
0 answers
Why the event receiver persist all the emitted values.how to listen to the most recent emitted value only
as shown in the below posted code, i emit an event as shown in section emitting an event. the value to be emitted is a string and the log-statement confirm that as shown in the below posted screen-shot.
the problem i am facing, is as i am registered…

Amrmsmb
- 1
- 27
- 104
- 226
0
votes
1 answer
How to set up the directive when creating a drag and drop zone in Angular?
I'm trying to create a files-drag & drop zone in Angular. I created dropzone.directive and added it to the declarations in app.module.ts.
My code compiles and I can launch everything. But when I try to drag files, the html doesn't respond to the…
user20113817
0
votes
1 answer
Filtering in angular 14 for the array of values in single column
How can I filter a single column values from a material table ?
FilterChange(event:Event)
{
const fillvalue=(event.target as HTMLInputElement).value;
this.dataSource.filter = fillvalue;
}
This is my function, I need to call the function when…

Abhirami K S
- 1
- 2
0
votes
0 answers
How fire an event when a "clr-tree-node" finish loading the children of a selected node?
How fire an event when a "clr-tree-node" finish loading the children of a selected node?
Hi all. Do you know if possible to fire an event when a "clr-tree-node" finish loading the children of a selected node?
I need to fire the click event of a…

David Alejandro García García
- 312
- 1
- 3
- 18