My dilemma lies in a directive whose data relies on the API response. The issue is that the $compile
of the directive occurs before the API is fully processed, resulting in an incorrect state for the directive.
Is there a way to address this problem? Is there a setting or configuration in AngularJs for directives, controllers, or any other element that will allow them to wait until the API call is completed?