{"action":"created","issue":{"url":"https://api.github.com/repos/BuffCoder/angular-currency/issues/7","repository_url":"https://api.github.com/repos/BuffCoder/angular-currency","labels_url":"https://api.github.com/repos/BuffCoder/angular-currency/issues/7/labels{/name}","comments_url":"https://api.github.com/repos/BuffCoder/angular-currency/issues/7/comments","events_url":"https://api.github.com/repos/BuffCoder/angular-currency/issues/7/events","html_url":"https://github.com/BuffCoder/angular-currency/issues/7","id":148045792,"number":7,"title":"Library in bower and in the plunker is not synchronized ","user":{"login":"burakkilic","id":123382,"avatar_url":"https://avatars.githubusercontent.com/u/123382?v=3","gravatar_id":"","url":"https://api.github.com/users/burakkilic","html_url":"https://github.com/burakkilic","followers_url":"https://api.github.com/users/burakkilic/followers","following_url":"https://api.github.com/users/burakkilic/following{/other_user}","gists_url":"https://api.github.com/users/burakkilic/gists{/gist_id}","starred_url":"https://api.github.com/users/burakkilic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/burakkilic/subscriptions","organizations_url":"https://api.github.com/users/burakkilic/orgs","repos_url":"https://api.github.com/users/burakkilic/repos","events_url":"https://api.github.com/users/burakkilic/events{/privacy}","received_events_url":"https://api.github.com/users/burakkilic/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-04-13T12:33:58Z","updated_at":"2016-07-29T15:05:51Z","closed_at":null,"body":"Hi;\r\n\r\nFirst I installed the library from bower. But it was working wrong. It was updating the model with currency symbol like in the photo.\r\n\r\n![screen shot 2016-04-13 at 15 26 58](https://cloud.githubusercontent.com/assets/123382/14493230/05cbf81a-018d-11e6-899c-aecf315851a9.png)\r\n\r\n\r\nBut when I used the code in plunker, it was ok.\r\n\r\nWhat is wrong?"},"comment":{"url":"https://api.github.com/repos/BuffCoder/angular-currency/issues/comments/236205641","html_url":"https://github.com/BuffCoder/angular-currency/issues/7#issuecomment-236205641","issue_url":"https://api.github.com/repos/BuffCoder/angular-currency/issues/7","id":236205641,"user":{"login":"majster","id":1515816,"avatar_url":"https://avatars.githubusercontent.com/u/1515816?v=3","gravatar_id":"","url":"https://api.github.com/users/majster","html_url":"https://github.com/majster","followers_url":"https://api.github.com/users/majster/followers","following_url":"https://api.github.com/users/majster/following{/other_user}","gists_url":"https://api.github.com/users/majster/gists{/gist_id}","starred_url":"https://api.github.com/users/majster/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/majster/subscriptions","organizations_url":"https://api.github.com/users/majster/orgs","repos_url":"https://api.github.com/users/majster/repos","events_url":"https://api.github.com/users/majster/events{/privacy}","received_events_url":"https://api.github.com/users/majster/received_events","type":"User","site_admin":false},"created_at":"2016-07-29T15:05:51Z","updated_at":"2016-07-29T15:05:51Z","body":"problem is that in plunker, code is:\r\n```\r\nelem.on('change', function () {\r\n                    scope.$applyAsync(function () {\r\n                        controller.$setViewValue(elem.autoNumeric('get'));\r\n                    });\r\n                });\r\n```\r\n\r\non directive (https://github.com/BuffCoder/angular-currency/blob/master/angular-currency.js) is : \r\n```\r\nelem.on('keypress', function () {\r\n                    scope.$apply(function () {\r\n                        controller.$setViewValue(elem.autoNumeric('get'));\r\n                    });\r\n                });\r\n```\r\n\r\nOne works, but only after change event is triggered. Other is working with every 'keyup' event, but on 'change' event autoNumeric overrides value.\r\n\r\nSo what I did, was use both blocks of code in directive."}}
{"actor":{"display_login":"majster"}}