{"id":26068363,"url":"https://github.com/minutebase/ember-dynamic-component","last_synced_at":"2025-08-04T03:34:12.156Z","repository":{"id":57223700,"uuid":"25229921","full_name":"minutebase/ember-dynamic-component","owner":"minutebase","description":"Ember addon to render a dynamic component","archived":false,"fork":false,"pushed_at":"2015-02-24T18:13:29.000Z","size":275,"stargazers_count":40,"open_issues_count":2,"forks_count":4,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-07-22T03:20:35.652Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/minutebase.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-10-14T22:51:15.000Z","updated_at":"2024-01-13T23:52:58.000Z","dependencies_parsed_at":"2022-08-30T02:10:21.865Z","dependency_job_id":null,"html_url":"https://github.com/minutebase/ember-dynamic-component","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/minutebase/ember-dynamic-component","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/minutebase%2Fember-dynamic-component","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/minutebase%2Fember-dynamic-component/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/minutebase%2Fember-dynamic-component/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/minutebase%2Fember-dynamic-component/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/minutebase","download_url":"https://codeload.github.com/minutebase/ember-dynamic-component/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/minutebase%2Fember-dynamic-component/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":268644510,"owners_count":24283338,"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-08-04T02:00:09.867Z","response_time":79,"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":[],"created_at":"2025-03-08T22:25:21.633Z","updated_at":"2025-08-04T03:34:12.136Z","avatar_url":"https://github.com/minutebase.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Ember-dynamic-component\n\nAn Ember CLI addon to render a dynamic component.\n\n## NOTE: Deprecation coming soon\nAs of [http://github.com/emberjs/ember.js#10093](http://github.com/emberjs/ember.js#10093), there is a corresponding system built into Ember with full support.  This change should land in Ember 1.11.  At that point this component will be deprecated.\n\n## Using\n\n### Installation\n\nInstall this addon via npm:\n\n```\nnpm install --save-dev ember-dynamic-component\n```\n\n### Usage\n\nGive the `{{dynamic-component}}` helper a type with the name of the component to render, and as that property\nchanges then the correct component will be rendered:\n\n```handlebars\n{{dynamic-component type=theType}}\n```\n\nAny other properties and actions given to the helper will be passed through to the underlying component:\n\n```handlebars\n{{dynamic-component\n  type=theType\n  boundProperty=foo\n  staticProperty=\"bar\"\n  onFoo=\"fooTriggered\"\n}}\n```\n\nThis means the following:\n\n```handlebars\n{{#if showFoo}}\n  {{x-foo onClick=\"thingClicked\" value=something}}\n{{/if}}\n{{#if showBar}}\n  {{x-bar onClick=\"thingClicked\" value=something}}\n{{/if}}\n{{#if showBaz}}\n  {{x-baz onClick=\"thingClicked\" value=something}}\n{{/if}}\n```\n\n... is essentially the same as:\n\n```handlebars\n{{dynamic-component type=type onClick=\"thingClicked\" value=something}}\n```\n\n## Developing\n\n### Installation\n\n* `git clone` this repository\n* `npm install`\n* `bower install`\n\n### Running\n\n* `ember server`\n* Visit your app at http://localhost:4200.\n\n### Running Tests\n\n* `ember test`\n* `ember test --server`\n\n### Building\n\n* `ember build`\n\nFor more information on using ember-cli, visit [http://www.ember-cli.com/](http://www.ember-cli.com/).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fminutebase%2Fember-dynamic-component","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fminutebase%2Fember-dynamic-component","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fminutebase%2Fember-dynamic-component/lists"}