{"action":"created","issue":{"url":"https://api.github.com/repos/thenikso/angular-inview/issues/54","labels_url":"https://api.github.com/repos/thenikso/angular-inview/issues/54/labels{/name}","comments_url":"https://api.github.com/repos/thenikso/angular-inview/issues/54/comments","events_url":"https://api.github.com/repos/thenikso/angular-inview/issues/54/events","html_url":"https://github.com/thenikso/angular-inview/pull/54","id":86920031,"number":54,"title":"$hasBeenInView property for element","user":{"login":"aledoroshenko","id":981275,"avatar_url":"https://avatars.githubusercontent.com/u/981275?v=3","gravatar_id":"","url":"https://api.github.com/users/aledoroshenko","html_url":"https://github.com/aledoroshenko","followers_url":"https://api.github.com/users/aledoroshenko/followers","following_url":"https://api.github.com/users/aledoroshenko/following{/other_user}","gists_url":"https://api.github.com/users/aledoroshenko/gists{/gist_id}","starred_url":"https://api.github.com/users/aledoroshenko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aledoroshenko/subscriptions","organizations_url":"https://api.github.com/users/aledoroshenko/orgs","repos_url":"https://api.github.com/users/aledoroshenko/repos","events_url":"https://api.github.com/users/aledoroshenko/events{/privacy}","received_events_url":"https://api.github.com/users/aledoroshenko/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-06-10T10:32:03Z","updated_at":"2015-07-06T10:20:20Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/thenikso/angular-inview/pulls/54","html_url":"https://github.com/thenikso/angular-inview/pull/54","diff_url":"https://github.com/thenikso/angular-inview/pull/54.diff","patch_url":"https://github.com/thenikso/angular-inview/pull/54.patch"},"body":"Useful when we need to check that some function already fired for this element (addresses #53). \r\n\r\n```\r\nscope.someFn = function( $hasBeenInView, $inview, $inviewpart, $event ) {\r\n    if ( $hasBeenInView ) {\r\n        return true;\r\n    }\r\n\r\n    // Some code\r\n}\r\n```\r\n\r\n@thenikso what do you think?"},"comment":{"url":"https://api.github.com/repos/thenikso/angular-inview/issues/comments/118800251","html_url":"https://github.com/thenikso/angular-inview/pull/54#issuecomment-118800251","issue_url":"https://api.github.com/repos/thenikso/angular-inview/issues/54","id":118800251,"user":{"login":"thenikso","id":1614904,"avatar_url":"https://avatars.githubusercontent.com/u/1614904?v=3","gravatar_id":"","url":"https://api.github.com/users/thenikso","html_url":"https://github.com/thenikso","followers_url":"https://api.github.com/users/thenikso/followers","following_url":"https://api.github.com/users/thenikso/following{/other_user}","gists_url":"https://api.github.com/users/thenikso/gists{/gist_id}","starred_url":"https://api.github.com/users/thenikso/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thenikso/subscriptions","organizations_url":"https://api.github.com/users/thenikso/orgs","repos_url":"https://api.github.com/users/thenikso/repos","events_url":"https://api.github.com/users/thenikso/events{/privacy}","received_events_url":"https://api.github.com/users/thenikso/received_events","type":"User","site_admin":false},"created_at":"2015-07-06T10:20:20Z","updated_at":"2015-07-06T10:20:20Z","body":"Hi there, as I mentioned #53 wouldn't the problem be fixed with something like:\r\n\r\n```\r\n<any in-view=\"hasBeenInView = hasBeenInView||$inview\"></any>\r\n```\r\n\r\nwithout adding code to the directive itself? What do you think?"}}