+ Events Page
This commit is contained in:
1 parent
026a38dab1
commit
109dbbe44f
18 files changed
+166
-5
No files matched your search
@@ -0,0 +1,17 @@
|
||||
import template from '../../templates/components/page-events.html';
|
||||
|
||||
export default function (app) {
|
||||
app.component('pageEvents', {
|
||||
template: template,
|
||||
controllerAs: '$',
|
||||
controller: function (api, menu) {
|
||||
this.pageClass = 'page-events';
|
||||
menu.activate('/events');
|
||||
|
||||
api.event.list()
|
||||
.success(posts => {
|
||||
this.posts = posts;
|
||||
});
|
||||
}
|
||||
});
|
||||
};
|
||||
Reference in new issue
Block a user