This commit is contained in:
tmshv committed 2016-03-07 04:46:42 +03:00
1 parent 261e842802
commit 0485a4acea
122 files changed
+4866 -3842

No files matched your search

+15
View File
@@ -0,0 +1,15 @@
import template from '../../templates/components/article.html';
export default function (app) {
app.component('hArticle', {
bindings: {
post: '<'
},
template: template,
controllerAs: '$',
controller: function ($sce) {
this.message = $sce.trustAsHtml(this.post.post);
this.url = `/article/${this.post.id}`;
}
});
};