Questions tagged [angular-event-emitter]

Use in directives and components to emit custom events synchronously or asynchronously, and register handlers for those events by subscribing to an instance.

171 questions
0
votes
0 answers

How to prevent any keyboard events and their default behavior on element in Angular 6

I am trying do prevent any keyboard activity on Angular Mat Header. I want to block keyboard navigation, entering steps using header. I want to use buttons only How to stop any keyboard activity on that element as preventDefault() does not…
Andyally
  • 863
  • 1
  • 9
  • 22
0
votes
2 answers

Modifying text inside textChange nativescript

I'm currently using a HostListener to be able to format user text at the same time that the user is typing it. For example if the user is typing a phone number I want to be able to add format just as needed. If the string is 0000 I want the text to…
0
votes
1 answer

angular6 material event emitter not working

I am trying to implement Event Emitter such that when a todo is inserted into the db, it is added to the list of todos. But it does not work. Please find the code below: The todoinput component(todo.input.html): component which adds a todo to the…
Ashy Ashcsi
  • 1,529
  • 7
  • 22
  • 54
0
votes
1 answer

Angular component property view not updating when function emits output event

Angular component variable is not updating in the view if the component method generates an output event. Variable in focus is 'qMode', Function with generating output event (NOT UPDATING VARIABLE) save() { if (this.questionForm.valid) { …
Lokinder Singh Chauhan
  • 2,326
  • 1
  • 20
  • 23
0
votes
0 answers

Angular: a directive to handle the end of custom event handler execution

My directive has a custom event, say my-event used like:
and user handles the event like: async handle(e) { await handleEvent(e); } Then I like to perform a specific action after the event is handled by…
bob
  • 2,674
  • 1
  • 29
  • 46
0
votes
1 answer

Dropdown component not having effect in Chromium browser

I have a simple pie chart with a dropdown component (based on