using Document component

This commit is contained in:
tmshv committed 2016-02-15 16:45:02 +03:00
1 parent 49ab70837b
commit 5623c296a1
2 files changed
+37 -39

No files matched your search

+1 -9
View File
@@ -1,11 +1,3 @@
<div class="documents-block" ng-controller="DocumentsController">
<div class="doc" ng-repeat="doc in documents">
<a href="{{doc.url}}" target="_blank" class="invisible">
<img ng-src="{{doc.preview}}">
</a>
<p>
<a href="{{doc.url}}" target="_blank">{{doc.title | uppercaseFirst}}</a>
</p>
</div>
<document ng-repeat="doc in documents" document="doc"></document>
</div>