Had to add a timeout, because it seems in some of the latest commits the
directives take an extra long time to load, so I need to wait an extra
long time to attach events. grrr angular.