{"action":"created","issue":{"url":"https://api.github.com/repos/wonderfan/javascript/issues/22","labels_url":"https://api.github.com/repos/wonderfan/javascript/issues/22/labels{/name}","comments_url":"https://api.github.com/repos/wonderfan/javascript/issues/22/comments","events_url":"https://api.github.com/repos/wonderfan/javascript/issues/22/events","html_url":"https://github.com/wonderfan/javascript/issues/22","id":67008967,"number":22,"title":"The full story of directives","user":{"login":"wonderfan","id":1715077,"avatar_url":"https://avatars.githubusercontent.com/u/1715077?v=3","gravatar_id":"","url":"https://api.github.com/users/wonderfan","html_url":"https://github.com/wonderfan","followers_url":"https://api.github.com/users/wonderfan/followers","following_url":"https://api.github.com/users/wonderfan/following{/other_user}","gists_url":"https://api.github.com/users/wonderfan/gists{/gist_id}","starred_url":"https://api.github.com/users/wonderfan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wonderfan/subscriptions","organizations_url":"https://api.github.com/users/wonderfan/orgs","repos_url":"https://api.github.com/users/wonderfan/repos","events_url":"https://api.github.com/users/wonderfan/events{/privacy}","received_events_url":"https://api.github.com/users/wonderfan/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/wonderfan/javascript/labels/angular-js","name":"angular-js","color":"fad8c7"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-04-07T23:05:05Z","updated_at":"2015-04-07T23:06:41Z","closed_at":null,"body":"* The `ngInit` directive allows you to evaluate an expression in the current scope."},"comment":{"url":"https://api.github.com/repos/wonderfan/javascript/issues/comments/90754926","html_url":"https://github.com/wonderfan/javascript/issues/22#issuecomment-90754926","issue_url":"https://api.github.com/repos/wonderfan/javascript/issues/22","id":90754926,"user":{"login":"wonderfan","id":1715077,"avatar_url":"https://avatars.githubusercontent.com/u/1715077?v=3","gravatar_id":"","url":"https://api.github.com/users/wonderfan","html_url":"https://github.com/wonderfan","followers_url":"https://api.github.com/users/wonderfan/followers","following_url":"https://api.github.com/users/wonderfan/following{/other_user}","gists_url":"https://api.github.com/users/wonderfan/gists{/gist_id}","starred_url":"https://api.github.com/users/wonderfan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wonderfan/subscriptions","organizations_url":"https://api.github.com/users/wonderfan/orgs","repos_url":"https://api.github.com/users/wonderfan/repos","events_url":"https://api.github.com/users/wonderfan/events{/privacy}","received_events_url":"https://api.github.com/users/wonderfan/received_events","type":"User","site_admin":false},"created_at":"2015-04-07T23:06:41Z","updated_at":"2015-04-07T23:06:41Z","body":"```\r\nvar ngInitDirective = ngDirective({\r\n  priority: 450,\r\n  compile: function() {\r\n    return {\r\n      pre: function(scope, element, attrs) {\r\n        scope.$eval(attrs.ngInit);\r\n      }\r\n    };\r\n  }\r\n});\r\n```"}}