{"id":31970425,"url":"https://github.com/lonli-lokli/ng-result","last_synced_at":"2025-10-14T19:15:03.208Z","repository":{"id":62411505,"uuid":"560169500","full_name":"Lonli-Lokli/ng-result","owner":"Lonli-Lokli","description":"Set of Angular components/directives/pipes for work with https://github.com/Lonli-Lokli/ts-result","archived":false,"fork":false,"pushed_at":"2023-04-16T11:18:47.000Z","size":1571,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-09-15T11:13:16.792Z","etag":null,"topics":["angular","functional-programming","monad","result"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Lonli-Lokli.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2022-10-31T22:09:34.000Z","updated_at":"2022-11-19T07:25:24.000Z","dependencies_parsed_at":"2023-12-25T04:43:24.491Z","dependency_job_id":null,"html_url":"https://github.com/Lonli-Lokli/ng-result","commit_stats":{"total_commits":11,"total_committers":1,"mean_commits":11.0,"dds":0.0,"last_synced_commit":"ea2adad8d0e37861119411f9e6635d7baa0e2cf6"},"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/Lonli-Lokli/ng-result","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Lonli-Lokli%2Fng-result","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Lonli-Lokli%2Fng-result/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Lonli-Lokli%2Fng-result/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Lonli-Lokli%2Fng-result/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Lonli-Lokli","download_url":"https://codeload.github.com/Lonli-Lokli/ng-result/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Lonli-Lokli%2Fng-result/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279020649,"owners_count":26086895,"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":"2025-10-14T02:00:06.444Z","response_time":60,"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","functional-programming","monad","result"],"created_at":"2025-10-14T19:14:58.063Z","updated_at":"2025-10-14T19:15:03.203Z","avatar_url":"https://github.com/Lonli-Lokli.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![MIT](https://img.shields.io/packagist/l/doctrine/orm.svg?style=flat-square)]()\r\n\r\n\u003e Angular Library with set of components/directives/pipes for easier work with data, using https://github.com/Lonli-Lokli/ts-result\r\n\r\n[Demo](https://lonli-lokli.github.io/ng-result/)\r\n\r\n## About\r\n[Result](https://github.com/Lonli-Lokli/ts-result) is an union of few types: ResultInitial, ResultPending, ResultFailure and ResultSuccess.\r\n\r\nWhile your data in initial or pending state just use `initial()` or `pending()`, because you don't have any real values in this case.\r\nWhen you receive data from server, use `failure` or `success` function, it depends on what you received.\r\n\r\n\r\n## Installation\r\n\r\n`ng add @lonli-lokli/ng-result`\r\n\r\n## Usage\r\n\r\n```html\r\n\u003cll-result [data]=\"data$ | async\"\u003e\r\n  \u003cng-container *ifSuccess=\"data$ | async; let ok\"\u003e\r\n    Here is the response: {{ok}}\r\n  \u003c/ng-container\u003e\r\n\u003c/ll-result\u003e\r\n```\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flonli-lokli%2Fng-result","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flonli-lokli%2Fng-result","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flonli-lokli%2Fng-result/lists"}