Made fixes so angular directives works when minified.