{"id":21585072,"url":"https://github.com/angular-ru/angular-reactive-forms-starter","last_synced_at":"2025-03-18T09:13:32.995Z","repository":{"id":90970933,"uuid":"139429644","full_name":"Angular-RU/angular-reactive-forms-starter","owner":"Angular-RU","description":null,"archived":false,"fork":false,"pushed_at":"2018-07-02T12:04:33.000Z","size":102,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-01-24T15:29:06.857Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/Angular-RU.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":"2018-07-02T10:43:00.000Z","updated_at":"2019-06-05T18:04:39.000Z","dependencies_parsed_at":"2023-06-27T00:45:06.050Z","dependency_job_id":null,"html_url":"https://github.com/Angular-RU/angular-reactive-forms-starter","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Angular-RU%2Fangular-reactive-forms-starter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Angular-RU%2Fangular-reactive-forms-starter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Angular-RU%2Fangular-reactive-forms-starter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Angular-RU%2Fangular-reactive-forms-starter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Angular-RU","download_url":"https://codeload.github.com/Angular-RU/angular-reactive-forms-starter/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244189829,"owners_count":20412991,"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","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":[],"created_at":"2024-11-24T15:08:54.707Z","updated_at":"2025-03-18T09:13:32.987Z","avatar_url":"https://github.com/Angular-RU.png","language":"TypeScript","readme":"# Angular Reactive Forms Starter\n\n## Installation\nFor angular 6:\n```bash\n$ git clone https://github.com/Angular-RU/angular-reactive-forms-starter.git\n$ cd angular-reactive-forms-starter\n$ npm i\n$ npm start\n```\n\n## Description\n![](https://pp.userapi.com/c849336/v849336677/1bfc3/GrzAWrMLeS8.jpg)\n### You have:\n1. `MainComponent` - Component at the top of the form.\n2. `FormService` - Service, you can use for parsing or converting `Model`\u003c=\u003e`Form`\n3. `NestedComponents` - Dummy components. Their main mission is to bind form controls to elements in the template. If needed you can inject `FormsService` and use it to generate new `FormGroup` in `FormArray` etc.\n\n## Principles\n1. `NestedComponents` **must** be stupid! Only some validators declatations, subscribtions on changing, without strong logic\n2. You should cover `FormsService` with unit tests.\n3. You can move some transformation parts from `FormsService` to more convinient places. \n\u003e *For example*: \n\u003e \n\u003e Transformation logic, related to `ThirdStepComponent` can be in `ThirdStepService` in same folder.\n\n## Things to do:\n\nWe want to create transforming package, which will be able convert json directly to form and visa versa. \n\nWithout any middle form\u003c-\u003emodel and model\u003c-\u003ejson,  transformations\n\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fangular-ru%2Fangular-reactive-forms-starter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fangular-ru%2Fangular-reactive-forms-starter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fangular-ru%2Fangular-reactive-forms-starter/lists"}