luya-module-admin icon indicating copy to clipboard operation
luya-module-admin copied to clipboard

Way to access CRUD AngularJs data in other AngularJs controller in a CRUD view

Open Antikon opened this issue 5 years ago • 2 comments

Quite often there is a task to display in a CRUD list view something besides a table. For example, instructions, statistics or timeline (see screenshot).

Crud-controller

It would be desirable to have possibility of both getting and setting AngularJs CRUD data in the table in a bidirectional way.

I think an AngularJs service can help here. The only thing, I don’t really imagine if there are any pitfalls related to security here.

Antikon avatar May 14 '20 08:05 Antikon

We could use events in the crud controller? an event when data is loaded, an event when data is updated. and then pass the data to the event.

nadar avatar May 15 '20 08:05 nadar

I don’t know what kind of particular implementation would be better. I leave it up to you. However, I’m sure that we don’t have to give up the possibility of bidirectional data transfer between different controllers on the same page.

Antikon avatar May 15 '20 12:05 Antikon