Zizzamia / ng-tasty

A tasty collection of reusable UI components for Angular, like grandma used to make. Like Table directive, WebSocket / Debounce / Throttle service, Range / Camelize / Slugify filters
MIT License
435 stars 64 forks source link

problem - or Question with ng-tasty getResource #198

Open sali1982 opened 8 years ago

sali1982 commented 8 years ago

Hi dear,

I have a scenario. Please help me.

My table is in a controller, but it is dependent on the other controller. Means the first controller has a service that gets and sets an id, and second controller will use that id and loads for the ng-tasty table something else based on that id.

I need to make sure that table does not load before that id is set. I have to put maybe watcher or on.

But the table returns a promise as it is hard to put it in a watch.

What do you suggest?

Zizzamia commented 8 years ago

Make always sure to keep the flow simple and easy to understand. Can you show me a simple version of how you set the HTML of yours controller, please.