{"action":"created","issue":{"url":"https://api.github.com/repos/angular-ui/ui-router/issues/2369","repository_url":"https://api.github.com/repos/angular-ui/ui-router","labels_url":"https://api.github.com/repos/angular-ui/ui-router/issues/2369/labels{/name}","comments_url":"https://api.github.com/repos/angular-ui/ui-router/issues/2369/comments","events_url":"https://api.github.com/repos/angular-ui/ui-router/issues/2369/events","html_url":"https://github.com/angular-ui/ui-router/issues/2369","id":116632445,"number":2369,"title":"Create a child view out of an ng-include","user":{"login":"dkromp","id":12497334,"avatar_url":"https://avatars.githubusercontent.com/u/12497334?v=3","gravatar_id":"","url":"https://api.github.com/users/dkromp","html_url":"https://github.com/dkromp","followers_url":"https://api.github.com/users/dkromp/followers","following_url":"https://api.github.com/users/dkromp/following{/other_user}","gists_url":"https://api.github.com/users/dkromp/gists{/gist_id}","starred_url":"https://api.github.com/users/dkromp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dkromp/subscriptions","organizations_url":"https://api.github.com/users/dkromp/orgs","repos_url":"https://api.github.com/users/dkromp/repos","events_url":"https://api.github.com/users/dkromp/events{/privacy}","received_events_url":"https://api.github.com/users/dkromp/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-11-12T20:23:16Z","updated_at":"2016-03-03T21:56:08Z","closed_at":"2016-03-03T21:56:08Z","body":"Hi, \r\nI have a state 'foo' that loads a template html and controller. The state's html has an ng-include. This is no-good with UI-router -- instead I should make a child view of the included html. I would like to inherit the scope properties from fooCtrl in the footer.html.\r\n\r\nHow do I do this?\r\n\r\nExample config setup:\r\n\r\n    .state('foo', {\r\n         url : '/foo',\r\n         templateUrl : 'app/foo.html',\r\n         controller : 'fooCtrl as foo'\r\n    })\r\n\r\n    .state('foo.footer', {\r\n         parent: 'foo',\r\n         templateUrl : 'app/footer.html'\r\n    })\r\n\r\nExample foo.html setup:\r\n\r\n    <div ui-view=\"\"><div>        <-- want to replace my ng-include with foo.footer nested view\r\n    ...rest of code in foo.html"},"comment":{"url":"https://api.github.com/repos/angular-ui/ui-router/issues/comments/191983052","html_url":"https://github.com/angular-ui/ui-router/issues/2369#issuecomment-191983052","issue_url":"https://api.github.com/repos/angular-ui/ui-router/issues/2369","id":191983052,"user":{"login":"eddiemonge","id":127535,"avatar_url":"https://avatars.githubusercontent.com/u/127535?v=3","gravatar_id":"","url":"https://api.github.com/users/eddiemonge","html_url":"https://github.com/eddiemonge","followers_url":"https://api.github.com/users/eddiemonge/followers","following_url":"https://api.github.com/users/eddiemonge/following{/other_user}","gists_url":"https://api.github.com/users/eddiemonge/gists{/gist_id}","starred_url":"https://api.github.com/users/eddiemonge/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eddiemonge/subscriptions","organizations_url":"https://api.github.com/users/eddiemonge/orgs","repos_url":"https://api.github.com/users/eddiemonge/repos","events_url":"https://api.github.com/users/eddiemonge/events{/privacy}","received_events_url":"https://api.github.com/users/eddiemonge/received_events","type":"User","site_admin":false},"created_at":"2016-03-03T21:56:08Z","updated_at":"2016-03-03T21:56:08Z","body":"closing due to inactivity"}}