fixes #31
added incjection to directive's controller