{"action":"reopened","issue":{"url":"https://api.github.com/repos/ritz078/ngEmbed/issues/23","labels_url":"https://api.github.com/repos/ritz078/ngEmbed/issues/23/labels{/name}","comments_url":"https://api.github.com/repos/ritz078/ngEmbed/issues/23/comments","events_url":"https://api.github.com/repos/ritz078/ngEmbed/issues/23/events","html_url":"https://github.com/ritz078/ngEmbed/issues/23","id":120772528,"number":23,"title":"two-way binding on embed-data","user":{"login":"rkimaoui","id":6640339,"avatar_url":"https://avatars.githubusercontent.com/u/6640339?v=3","gravatar_id":"","url":"https://api.github.com/users/rkimaoui","html_url":"https://github.com/rkimaoui","followers_url":"https://api.github.com/users/rkimaoui/followers","following_url":"https://api.github.com/users/rkimaoui/following{/other_user}","gists_url":"https://api.github.com/users/rkimaoui/gists{/gist_id}","starred_url":"https://api.github.com/users/rkimaoui/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rkimaoui/subscriptions","organizations_url":"https://api.github.com/users/rkimaoui/orgs","repos_url":"https://api.github.com/users/rkimaoui/repos","events_url":"https://api.github.com/users/rkimaoui/events{/privacy}","received_events_url":"https://api.github.com/users/rkimaoui/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-12-07T13:20:03Z","updated_at":"2015-12-12T05:34:51Z","closed_at":null,"body":"Hello there,\r\n\r\nHow can i make a two-way binding on embed-data ?\r\nI want to reload the directive everytime embed-data change.\r\n\r\nAt the moment when i bind with a ng-model, i get this error:\r\n\r\n```javascript  TypeError: Cannot read property 'replace' of undefined\r\n    at Object.codeProcess.getCode (http://localhost:3000/bower_components/ngEmbed/src/ng-embed.js:596:40)\r\n    at link (http://localhost:3000/bower_components/ngEmbed/src/ng-embed.js:757:48)\r\n    at invokeLinkFn (http://localhost:3000/bower_components/angular/angular.js:8789:9)\r\n    at nodeLinkFn (http://localhost:3000/bower_components/angular/angular.js:8289:11)\r\n    at http://localhost:3000/bower_components/angular/angular.js:8519:13\r\n    at processQueue (http://localhost:3000/bower_components/angular/angular.js:14745:28)\r\n    at http://localhost:3000/bower_components/angular/angular.js:14761:27\r\n    at Scope.$eval (http://localhost:3000/bower_components/angular/angular.js:15989:28)\r\n    at Scope.$digest (http://localhost:3000/bower_components/angular/angular.js:15800:31)\r\n    at Scope.scopePrototype.$digest (chrome-extension://ighdmehidhipcmcojjgiloacoafjmpfk/dist/hint.js:1972:23) <ng-embed data-embed-data=\"{{vm.post.content}}\" embed-options=\"vm.options\" embed-template-url=\"/app/spaces/embed-template.tmpl.html\" class=\"ng-scope\">```\r\n\r\n\r\nThanks in advance.\r\nReda"}}