-
Notifications
You must be signed in to change notification settings - Fork 5
Create angular module dashboard #48
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: develop
Are you sure you want to change the base?
Conversation
|
|
||
| // request to the backend | ||
| self.sortBy = function(field, order) { | ||
| self.invoiceService.getList('', field, order); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
wrong. the first parameter in this function is params which is a dictionary not a blank string. You put the Query parameter in that param.
DO NOT add unnecessary/duplicate function parameters
| self.sort = function (field) { | ||
| self.order = self.order == 0 ? 1 : 0; | ||
|
|
||
| if(self.order === 0) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
bad practice. find a better approach
a3f49dc to
3bd9e8a
Compare
23e8a93 to
d1576ee
Compare
changes
reference