+ Document component

This commit is contained in:
tmshv committed 2016-02-15 16:44:21 +03:00
1 parent b866f443d8
commit 49ab70837b
2 files changed
+21

No files matched your search

+13
View File
@@ -0,0 +1,13 @@
import template from '../../templates/components/document.html';
export default function (app) {
app.component('document', {
bindings: {
document: '='
},
controller: function () {
//this.testing = 123;
},
template: template
});
};
+8
View File
@@ -0,0 +1,8 @@
<div class="doc">
<a href="{{$ctrl.document.url}}" target="_blank" class="invisible">
<img ng-src="{{$ctrl.document.preview}}">
</a>
<p>
<a href="{{$ctrl.document.url}}" target="_blank">{{$ctrl.document.title | uppercaseFirst}}</a>
</p>
</div>