Skip to content
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

Interfaces - controller auto-loaded data #144

Open
PhilipSkinner opened this issue May 26, 2022 · 0 comments
Open

Interfaces - controller auto-loaded data #144

PhilipSkinner opened this issue May 26, 2022 · 0 comments

Comments

@PhilipSkinner
Copy link
Owner

It can be pretty tiresome to write the same code again and again for loading data when a page/component loads - so we should have some some of configuring data which is loaded.

This should be held as configuration within the controller, something like:

{
  data : {
    languages : {
      source : "languages",
      pagination : {
        page : "$.page",
        pagesize : "$.pagesize"
      },
      filters : [
        {
          path : "$.name",
          value : "english"
        }
      ]      
    }
  }
}
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

No branches or pull requests

1 participant