Fixed the selectall directive for minification. There was an issue using a controller instead of a postlink function.