{"id":22546782,"url":"https://github.com/simars/ngx-mix-libraries","last_synced_at":"2025-03-28T08:46:20.294Z","repository":{"id":78863163,"uuid":"143234823","full_name":"simars/ngx-mix-libraries","owner":"simars","description":"useful assortment of angular pipes, decorators and directives","archived":false,"fork":false,"pushed_at":"2018-09-20T04:01:12.000Z","size":156,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-04-27T22:40:20.533Z","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/simars.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-08-02T02:58:55.000Z","updated_at":"2018-09-20T04:01:13.000Z","dependencies_parsed_at":"2023-05-22T19:00:37.852Z","dependency_job_id":null,"html_url":"https://github.com/simars/ngx-mix-libraries","commit_stats":{"total_commits":16,"total_committers":1,"mean_commits":16.0,"dds":0.0,"last_synced_commit":"3b368210408354cf0f13f5f22626ecd04290b51b"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simars%2Fngx-mix-libraries","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simars%2Fngx-mix-libraries/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simars%2Fngx-mix-libraries/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simars%2Fngx-mix-libraries/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/simars","download_url":"https://codeload.github.com/simars/ngx-mix-libraries/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245999311,"owners_count":20707554,"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-12-07T15:08:54.341Z","updated_at":"2025-03-28T08:46:20.275Z","avatar_url":"https://github.com/simars.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# NgxMixLibraries\n\nThis project was generated with [Angular CLI](https://github.com/angular/angular-cli) version 6.0.8.\nThis projects is houses ngx-mix library as a library project and wraps it with some demonstrations in the root project\n\n## NgxMix\n\n[projects/ngx-mix-form](projects/ngx-mix-form)\n\n### Pipes\n\n#### apply \u0026 applyPure pipes\n\n\u003e __applyPure__ Pipe Transforms the input that changes only by \u003cstrong\u003ereference\u003c/strong\u003e value by applying given \u003cstrong\u003epure\u003c/strong\u003e function\n\n```\n@Component({\n  selector: 'app-apply-pipe',\n  template: '\u003cspan\u003eSUM of {{fib | json}} =  {{fib | applyPure: sum}}\u003c/span\u003e'\n})\nexport class ApplyPipeComponent {\n\n fib = [1, 2, 3, 5, 8, 13];\n constructor() { }\n \n  public sum(collection: [number]): number {\n    return collection.reduce((first, second) =\u003e first + second);\n  }\n\n}\n```\n\n#####\n\u003e __apply__ Pipe Transforms the input value by applying given function\n\nLearn about [pure and impure | Pipes](https://angular.io/guide/pipes)\n\n\n## NgxMixForm\n\n\u003e __CustomValidators__ Build custom cross-field validators for Reactive Froms, ex where one field is required or not required based on state of another field\n\n[projects/ngx-mix-form](projects/ngx-mix-form)\n\n \n```\n  class AppComponent implements OnInit  {\n   registerForm: FormGroup;\n   constructor( @Inject(FormBuilder) private formBuilder: FormBuilder) {}\n\n   ngOnInit() {\n        this.registerForm = this.formBuilder.group({\n            firstName: ['', Validators.required],\n            phone: ['', [Validators.pattern('[0-9]*')]],\n            email: ['', [ Validators.email]]\n        },\n        {\n          validator: [\n            CustomValidators.requiredEither('email', 'phone')\n          ]\n        }\n       );\n    }\n\n```\n \n\n## Build, Deploy, Test and Try out\n\n### Development server\n\nRun `ng serve` for a dev server. Navigate to `http://localhost:4200/`. The app will automatically reload if you change any of the source files.\nThe wrapper project uses ngx-mix libraries and hosts demonstration of library features\n\nWrapper projects includes `ngx-mix` library in it's path \n\n### Build\n\nRun `ng build` to build the project. The build artifacts will be stored in the `dist/` directory. Use the `--prod` flag for a production build.\n\nRun `npm run build:lib` or `ng build ngx-mix --prod` to builds ngx-mix library bundle for distribution in `dist/` \n\n### Running unit tests\n\nRun `ng test` to execute the unit tests via [Karma](https://karma-runner.github.io).\n\n### Running end-to-end tests\n\nRun `ng e2e` to execute the end-to-end tests via [Protractor](http://www.protractortest.org/).\n\n### Further help\n\nTo get more help on the Angular CLI use `ng help` or go check out the [Angular CLI README](https://github.com/angular/angular-cli/blob/master/README.md).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsimars%2Fngx-mix-libraries","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsimars%2Fngx-mix-libraries","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsimars%2Fngx-mix-libraries/lists"}