use ng-if to make sure controller dependant data is loaded before directive loads