New York Times Interview Question

How can you know when an Angular Directive is done updating?