I am new in angular.js
in my angular run method, there is api request from server side and that received data is assigned in angular.constant
angular.constant is used in my directive and that directive is used in my html page.
when my application run everything works properly but the issue is that when application is reloaded that time html page and run method's api call execute simultaneously. so the issue is that my html page directive is called first and after that data is received from server. so in that directive angular.constant value is null and directive behavior is not proper because of null value of angular.constant
Is there any solution in which when data comes from server side after that html DOM render?
thanks in advance.