{"id":14973347,"url":"https://github.com/camargo/ng-elm","last_synced_at":"2025-10-27T01:30:28.509Z","repository":{"id":57144133,"uuid":"64780279","full_name":"camargo/ng-elm","owner":"camargo","description":"Write Angular components in Elm.","archived":false,"fork":false,"pushed_at":"2020-09-05T17:16:41.000Z","size":156,"stargazers_count":43,"open_issues_count":0,"forks_count":2,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-02-08T03:28:29.659Z","etag":null,"topics":["angular","angular-2","angular2","elm","ng-elm","ng2","ngx"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/camargo.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-08-02T18:04:02.000Z","updated_at":"2024-02-05T07:54:28.000Z","dependencies_parsed_at":"2022-09-05T12:51:42.500Z","dependency_job_id":null,"html_url":"https://github.com/camargo/ng-elm","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/camargo%2Fng-elm","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/camargo%2Fng-elm/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/camargo%2Fng-elm/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/camargo%2Fng-elm/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/camargo","download_url":"https://codeload.github.com/camargo/ng-elm/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":238418210,"owners_count":19468865,"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":["angular","angular-2","angular2","elm","ng-elm","ng2","ngx"],"created_at":"2024-09-24T13:48:35.401Z","updated_at":"2025-10-27T01:30:28.168Z","avatar_url":"https://github.com/camargo.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ng-elm\n\nThis package lets you embed [Elm](https://elm-lang.org/) programs inside of [Angular](https://angular.io/) components.\u003cbr\u003e\nBased off of: [https://github.com/evancz/react-elm-components](https://github.com/evancz/react-elm-components)\n\n## Installation\n\n```bash\nnpm install ng-elm --save\n```\n\n## Example\n\n- Elm Buttons - [Code](https://github.com/camargo/ng-elm/tree/master/example)\n\n## Usage\n\nAfter compiling your Elm program into JavaScript, you can embed it in Angular.\u003cbr\u003e\nThis example uses the [Elm buttons program](https://guide.elm-lang.org/architecture/buttons.html) :\n\n```ts\nimport { NgModule, Component, OnInit } from '@angular/core';\nimport { BrowserModule } from '@angular/platform-browser';\nimport { NgElmModule } from 'ng-elm';\nimport { Elm } from './buttons.js';\n\n@Component({\n  selector: 'my-app',\n  template: '\u003cng-elm [src]=\"Buttons\"\u003e\u003c/ng-elm\u003e',\n})\nclass AppComponent implements OnInit {\n  Buttons: any;\n\n  ngOnInit() {\n    this.Buttons = Elm.Buttons;\n  }\n}\n\n@NgModule({\n  bootstrap: [AppComponent],\n  declarations: [AppComponent],\n  imports: [BrowserModule, NgElmModule],\n})\nexport class AppModule {}\n```\n\nNote that flags (data passed into your Elm program from Angular), and [ports](https://guide.elm-lang.org/interop/ports.html) are also implemented.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcamargo%2Fng-elm","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcamargo%2Fng-elm","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcamargo%2Fng-elm/lists"}