elemental-lowcode
elemental-lowcode copied to clipboard
Interfaces - controller auto-loaded data
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"
}
]
}
}
}