{"action":"created","issue":{"url":"https://api.github.com/repos/fragaria/angular-daterangepicker/issues/34","labels_url":"https://api.github.com/repos/fragaria/angular-daterangepicker/issues/34/labels{/name}","comments_url":"https://api.github.com/repos/fragaria/angular-daterangepicker/issues/34/comments","events_url":"https://api.github.com/repos/fragaria/angular-daterangepicker/issues/34/events","html_url":"https://github.com/fragaria/angular-daterangepicker/issues/34","id":58332592,"number":34,"title":"Minified JS problem?","user":{"login":"szymonmichalak","id":6726839,"avatar_url":"https://avatars.githubusercontent.com/u/6726839?v=3","gravatar_id":"","url":"https://api.github.com/users/szymonmichalak","html_url":"https://github.com/szymonmichalak","followers_url":"https://api.github.com/users/szymonmichalak/followers","following_url":"https://api.github.com/users/szymonmichalak/following{/other_user}","gists_url":"https://api.github.com/users/szymonmichalak/gists{/gist_id}","starred_url":"https://api.github.com/users/szymonmichalak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/szymonmichalak/subscriptions","organizations_url":"https://api.github.com/users/szymonmichalak/orgs","repos_url":"https://api.github.com/users/szymonmichalak/repos","events_url":"https://api.github.com/users/szymonmichalak/events{/privacy}","received_events_url":"https://api.github.com/users/szymonmichalak/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-02-20T10:18:50Z","updated_at":"2015-02-22T16:59:52Z","closed_at":null,"body":"Hi,\r\nfirst of all - thanks for your great work!\r\n\r\nDirective is working perfectly, while testing it locally (using yeoman with angularjs + requirejs, wiredep, loading all dependencies). \r\n\r\nHowever, during the built, my grunt configuration is performing minification (etc.) and after build such error is printed into console:\r\n\r\n```\r\nTypeError: undefined is not a function\r\n    at a.directive.link.n (http://localhost/scripts/main.js:32:1100)\r\n    at a.directive.link (http://localhost/scripts/main.js:32:1311)\r\n    at http://localhost/scripts/main.js:3:5951\r\n    at invokeLinkFn (http://localhost/scripts/main.js:3:6069)\r\n    at nodeLinkFn (http://localhost/scripts/main.js:2:24060)\r\n    at compositeLinkFn (http://localhost/scripts/main.js:2:13776)\r\n    at compositeLinkFn (http://localhost/scripts/main.js:2:13866)\r\n    at $get.node (http://localhost/scripts/main.js:2:12447)\r\n    at compile (http://localhost/scripts/main.js:20:12698)\r\n    at invokeLinkFn (http://localhost/scripts/main.js:3:6069) <div class=\"date-picker ng-pristine ng-untouched ng-valid ng-isolate-scope\" options=\"datepickerOptions\" ng-model=\"active.date\" date-range-picker=\"\">\r\n```\r\n\r\nI tried out included minified version, but still no success, so it seems that this is not the problem. Any ideas what could went wrong?\r\n\r\nThanks in advance, cheers!"},"comment":{"url":"https://api.github.com/repos/fragaria/angular-daterangepicker/issues/comments/75444971","html_url":"https://github.com/fragaria/angular-daterangepicker/issues/34#issuecomment-75444971","issue_url":"https://api.github.com/repos/fragaria/angular-daterangepicker/issues/34","id":75444971,"user":{"login":"krtek","id":422139,"avatar_url":"https://avatars.githubusercontent.com/u/422139?v=3","gravatar_id":"","url":"https://api.github.com/users/krtek","html_url":"https://github.com/krtek","followers_url":"https://api.github.com/users/krtek/followers","following_url":"https://api.github.com/users/krtek/following{/other_user}","gists_url":"https://api.github.com/users/krtek/gists{/gist_id}","starred_url":"https://api.github.com/users/krtek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/krtek/subscriptions","organizations_url":"https://api.github.com/users/krtek/orgs","repos_url":"https://api.github.com/users/krtek/repos","events_url":"https://api.github.com/users/krtek/events{/privacy}","received_events_url":"https://api.github.com/users/krtek/received_events","type":"User","site_admin":false},"created_at":"2015-02-22T16:59:52Z","updated_at":"2015-02-22T16:59:52Z","body":"Hello, \r\nI just tested it locally with minified version and it works OK. Are you sure there is no glitch in your code?\r\n\r\nWhile minifying AngularJS code you must use [ngAnnotate](https://github.com/mzgol/grunt-ng-annotate) grunt plugin. Did you?"}}