angular.js - AngularJs table reuse
phpcn_u1582
phpcn_u1582 2017-05-15 16:55:27
0
1
507

To achieve reuse of lists

1.html
<p>{{aa.aa}}</p>
<p>{{aa.bb}}</p>
<p> ;{{aa.cc}}</p>

2.html

<p ng-repeat="aa in aas">
<p ng-include="1.html"></p>
</p>

That’s it.

But I encountered a problem when reusing the table.
The situation is. The same Controller.

How to reuse an entire table when using a Controller?
That is to say, the data source of ng-repeat needs to be passed in from the upper layer.

Secondly.
will encounter grammatical errors and

<td ng-incloud="xxx.html"></td?


There will be grammatical errors. What to do at this time
phpcn_u1582
phpcn_u1582

reply all(1)
仅有的幸福
<td ng-incloud="'xxx.html'"></td>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template