N
N
Nikolay Semenov2016-10-02 10:26:49
Angular
Nikolay Semenov, 2016-10-02 10:26:49

How to stop bulk fill on click popover in Angular?

Faced with this problem demo.nsemenov.com
on click, you need to display the form in each cell, but in order, depending on which cell you clicked ... and it displays everything at once ... moreover, if I try to enter something into the form, it disappears .
Guys help me... I'm just learning Angular.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Markus Kelvin, 2016-10-02
@mmxdesign

As I wrote earlier, you misunderstand directives. Why do you have so many windows? because all your clicks are bound to the rootScope and one click triggers the same number of click functions. You need to isolate each cell by creating a directive on that cell...think of a cell as one single function. and so the directive also is this function which knows that does cells in different circumstances. and then you don't have to fence so much DOM with ng-click

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question