Javascript Angularjs在ng repeat上的造型
如何在重复上进行造型?可以为它分配一个div吗 它目前的样子: 我希望它看起来像什么: HTML:Javascript Angularjs在ng repeat上的造型,javascript,css,angularjs,Javascript,Css,Angularjs,如何在重复上进行造型?可以为它分配一个div吗 它目前的样子: 我希望它看起来像什么: HTML: <div class="displaySubCategory"> <div class="categoryImg"> <img src="img/csvIcon.png" /> <img src="img/shpIcon.png" /> </div> <div class="categoryD
<div class="displaySubCategory">
<div class="categoryImg">
<img src="img/csvIcon.png" />
<img src="img/shpIcon.png" />
</div>
<div class="categoryDesc">
<p>Dengue (Cases) - Central</p>
<a href="" ng-click="download()">Download</a> | <a href="">View on
map</a> | <a href="#!/displayCommunity">View Data</a>
</div>
如果我想在LI中实现它HTML:
-
{{communityTheme.THEMENAME}
|
|
请参见此
我使用在控制器中创建的示例数据为您实现了ng repeat。
一旦你改变了它,它应该像你想要的那样显示出来
这是使用ng repeat
的行
<div class="displaySubCategory" ng-repeat="place in places">
我想在ng repeat中实现这一点。你的问题不清楚,你想要CSS样式还是想要ng repeat?你好像两个都没有。我想麻烦你,如果我现在想把它放在一个房间里,可以吗@霍利德拉贡
<ul>
<li ng-repeat="communityTheme in community | startFrom:currentPage*pageSize | limitTo:pageSize">
{{communityTheme.THEMENAME}}
<a ng-href="https://assets.onemap.sg/shp/{{SHPFile}}" ng-click="getSHP(communityTheme.QUERYNAME)" target="_blank" download>SHP</a> |
<a ng-href="https://assets.onemap.sg/kml/{{KMLFile}}" ng-click="getKML(communityTheme.QUERYNAME)" target="_blank" download>KML</a> |
<a href=>View on Map</a>
</li>
</ul>
<div class="displaySubCategory" ng-repeat="place in places">
<p>{{ place.name }}</p>