Skip to content

Conversation

@jkingz
Copy link
Contributor

@jkingz jkingz commented Apr 5, 2018

changes

  • Add a angular dashboard

reference


// request to the backend
self.sortBy = function(field, order) {
self.invoiceService.getList('', field, order);
Copy link
Contributor

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) {
Copy link
Contributor

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

@jkingz jkingz force-pushed the feature/dashboard branch from a3f49dc to 3bd9e8a Compare April 9, 2018 14:53
@jkingz jkingz force-pushed the feature/dashboard branch from 23e8a93 to d1576ee Compare April 23, 2018 05:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants