ng-tasty
ng-tasty copied to clipboard
problem - or Question with ng-tasty getResource
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?
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.