Hi, great framework by the way. I’m trying to explore a bit by doing a todo list and i’m trying to create the template in js by adding this on load.
I’m getting this error because the data-action is reserved
index.ts:33 Error parsing descriptor string “task”
Error: Bad action descriptor “task”: Invalid action descriptor syntax
The code is this:
connect() {
$.getJSON('/tasks/', (data) => {
$.each( JSON.parse(data), ( key, instance ) => {
$("<li/>", {
'data-action': 'task#change',
id: key,
text: instance.fields.name
}).appendTo($(this.element))
});
})
}
How can i do something like this?