update
This commit is contained in:
1 parent
261e842802
commit
0485a4acea
122 files changed
+4866
-3842
No files matched your search
@@ -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}`;
|
||||
}
|
||||
});
|
||||
};
|
||||
Reference in new issue
Block a user