国产av日韩一区二区三区精品,成人性爱视频在线观看,国产,欧美,日韩,一区,www.成色av久久成人,2222eeee成人天堂

angular.js - Instructions under instructions. When facing the superior instruction ng-repeat, will ng-controller have multiple problems?
PHP中文網(wǎng)
PHP中文網(wǎng) 2017-05-15 16:59:18
0
1
622

As shown in the figure, B is an internal part of A. The entire area including A is dynamically generated based on data, and the number is variable.

I had a question when defining the controller. I wanted to give area B a separate controller. But since A is generated by ng-repeat, when writing a controller in area B, ng-controller="BBB" is sure. Will appear multiple times. Is this okay? I've read a lot of tutorials, but I've never seen ng-controller appear multiple times?
This also brings up a problem. I want to separate the scope data of B in different areas. Is there any problem? Using scope: {} can't do it. I don't know why?

PHP中文網(wǎng)
PHP中文網(wǎng)

認(rèn)證0級講師

reply all(1)
世界只因有你

In this case, the incoming and outgoing of B can be abstracted, so a better approach is to make B into a directive and handle it separately.

Hope it helps~ :)

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template