E
E
Ekaterina2014-07-02 15:28:36
Angular
Ekaterina, 2014-07-02 15:28:36

How can an event be inherited in AngularJS?

To be able not to write ng-click, but let's say ng-type="openmodal", and somewhere to describe that this type involves hanging an event on click.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
maxaon, 2014-07-02
@sferrka

Strange task.
If you need to open a modal window, create a directive. But it's better to do it through the controller and the service. See ui-bootstrap modal

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question