{"id":20314326,"url":"https://github.com/normandy72/nested-views","last_synced_at":"2026-05-06T00:07:01.803Z","repository":{"id":153902823,"uuid":"592293489","full_name":"Normandy72/Nested-Views","owner":"Normandy72","description":"Routing State with Nested Views in AngularJS. Coursera course \"Single Page Web Applications with AngularJS\" by Yaakov Chaikin.","archived":false,"fork":false,"pushed_at":"2023-01-23T12:50:25.000Z","size":96,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-04T08:44:54.937Z","etag":null,"topics":["angular","angularjs","css","css3","html","html5","javascript","js"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Normandy72.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-01-23T12:20:23.000Z","updated_at":"2023-01-23T12:34:38.000Z","dependencies_parsed_at":null,"dependency_job_id":"8f7f6617-d1c1-4518-99f6-4e0168548dc6","html_url":"https://github.com/Normandy72/Nested-Views","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Normandy72/Nested-Views","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Normandy72%2FNested-Views","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Normandy72%2FNested-Views/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Normandy72%2FNested-Views/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Normandy72%2FNested-Views/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Normandy72","download_url":"https://codeload.github.com/Normandy72/Nested-Views/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Normandy72%2FNested-Views/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32672688,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-05T11:29:49.557Z","status":"ssl_error","status_checked_at":"2026-05-05T11:29:48.587Z","response_time":54,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["angular","angularjs","css","css3","html","html5","javascript","js"],"created_at":"2024-11-14T18:14:50.759Z","updated_at":"2026-05-06T00:07:01.788Z","avatar_url":"https://github.com/Normandy72.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Routing State with Nested Views\n### Setting up Child (nested) State\n```\n.state('view1.child', {\n    url: '/detail/{param1}',\n    templateUrl: 'view1Detail.html',\n    ...\n});\n```\n__view1.html__ (parent state template)\n```\n\u003cdiv\u003e\n    \u003cdiv\u003e content... \u003c/div\u003e\n    \u003cui-view\u003e\u003c/ui-view\u003e\n\u003c/div\u003e\n```\n### Inherited resolve Properties\n```\n.state('view1', {\n    resolve: {\n        myData: 'someVal'\n    }\n    ...\n});\n```\n```\n.state('view1.child', {\n    controller: \"ChildCtrl as child\"\n    ...\n});\n```\n```\nChildCtrl.$inject = ['myData'];\nfunction ChildCtrl(myData){\n    ...\n};\n```\n***\n#### _Summary_\n* Nested states allow us to logically represent nested views.\n* Parent state template has a ui-view in its template for the child state's template to insert its HTML.\n* Child state name is usually declared with syntax `parent.child`.\n* The optionally declared url of the child gets concatenated to the declared url of the parent.\n* The parent's resolve property is inherited by the child and is injectable directly into the child's controller.\n***","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnormandy72%2Fnested-views","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnormandy72%2Fnested-views","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnormandy72%2Fnested-views/lists"}