$postLink of an angular component/directive running too early
The documentation regarding $postLink() is correct. It’s called after its controller’s element and its children have been linked. This doesn’t mean that you’ll see a directive’s result immediately. Maybe it’s calling $http and inserting the result once it arrives. Maybe it’s registering a watcher which in turns sets the result, as most of Angular’s built-in … Read more