+ Document component
This commit is contained in:
1 parent
b866f443d8
commit
49ab70837b
2 files changed
+21
No files matched your search
@@ -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
|
||||||
|
});
|
||||||
|
};
|
||||||
@@ -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>
|
||||||
Reference in new issue
Block a user