Add $on event listening for timeline directive.