New subscriber view
diff --git a/views/ngXosViews/subscribers/src/js/main.js b/views/ngXosViews/subscribers/src/js/main.js
index 957f807..838efa0 100644
--- a/views/ngXosViews/subscribers/src/js/main.js
+++ b/views/ngXosViews/subscribers/src/js/main.js
@@ -23,13 +23,19 @@
bindToController: true,
controllerAs: 'vm',
templateUrl: 'templates/subscribers-list.tpl.html',
- controller: function(Subscribers){
+ controller: function(){
this.smartTableConfig = {
resource: 'Subscribers'
};
- this.formConfig = {
+ this.model = {
+ label: {
+ name: 'aaa'
+ },
+ empty: {}
+ }
+ this.config = {
exclude: ['password', 'last_login'],
formName: 'sampleForm',
actions: [
@@ -43,15 +49,6 @@
}
]
};
-
- // retrieving user list
- Subscribers.query().$promise
- .then((users) => {
- this.users = users[0];
- })
- .catch((e) => {
- throw new Error(e);
- });
}
};
});
\ No newline at end of file