{"id":21307491,"url":"https://github.com/jdegand/routerinput","last_synced_at":"2026-01-01T21:59:18.395Z","repository":{"id":189580206,"uuid":"680909764","full_name":"jdegand/RouterInput","owner":"jdegand","description":"Angular Challenges #22 router input solution","archived":false,"fork":false,"pushed_at":"2023-09-23T00:29:35.000Z","size":122,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-15T19:49:20.224Z","etag":null,"topics":["angular","angular-challenges"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/jdegand.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-08-20T19:44:40.000Z","updated_at":"2023-09-13T00:31:09.000Z","dependencies_parsed_at":null,"dependency_job_id":"5834db51-1886-441e-a452-11b6415e84d5","html_url":"https://github.com/jdegand/RouterInput","commit_stats":null,"previous_names":["jdegand/routerinput"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/jdegand/RouterInput","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jdegand%2FRouterInput","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jdegand%2FRouterInput/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jdegand%2FRouterInput/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jdegand%2FRouterInput/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jdegand","download_url":"https://codeload.github.com/jdegand/RouterInput/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jdegand%2FRouterInput/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28164137,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2026-01-01T02:00:06.694Z","response_time":59,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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","angular-challenges"],"created_at":"2024-11-21T16:32:15.933Z","updated_at":"2026-01-01T21:59:18.373Z","avatar_url":"https://github.com/jdegand.png","language":"TypeScript","readme":"# RouterInput\n\n[Thomas Laforge's Angular Challenges](https://github.com/tomalaforge/angular-challenges) (#22) router-input solution.    \n\n## Screenshots\n\n![](screenshots/RouterInput.png)\n\n## Built With\n\n- [Angular CLI](https://github.com/angular/angular-cli) version 16.2.0.\n- [Angular](https://angular.io)\n\n## Thoughts\n\n- I left the activatedRoute code.\n- I used transform to make the testId a number instead of a string.\n- I think the transform property makes the @Input strategy more useful than activatedRoute.\n- Also, you don't have to differentiate between params / queryParams with @Input().  \n- I renamed permission to have a different name - you pass the name defined in the route to @Input() and then you can change the variable to something else.   \n\n## Directions\n\nIn this small application, you can pass data though routing to `TestComponent`. v16 of Angular introduced `RouterInput`. The goal of this exercice is to refactor the code to use the new `RouterInput` strategy.\n\n## Useful Resources\n\n- [FreeCodeCamp](https://www.freecodecamp.org/news/use-input-for-angular-route-parameters/) - use input for angular route parameters\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjdegand%2Frouterinput","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjdegand%2Frouterinput","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjdegand%2Frouterinput/lists"}