E
E
ebanytiu_lis2018-06-20 09:34:14
Angular
ebanytiu_lis, 2018-06-20 09:34:14

How to refer to a component using a directive?

Let's say I have a directive clinging to the appMovable tag. I also have a window component, with code like this:

<div class='window'>
  <div appMovalbe></div>
  <div>{{ Content }}</div>
</div>

The appMovalbe directive is triggered on a click on an element. Sobsno the question itself: How in the function that processes the click in the directive to access the component and execute, for example, the function of the jUpdate component?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question