# experimental-set-route-component

> The default blueprint for ember-cli addons.

Latest version **0.0.3** (published 2022-01-29) · MIT license · 0 weekly downloads

## Install

```sh
npm install experimental-set-route-component
pnpm add experimental-set-route-component
yarn add experimental-set-route-component
bun add experimental-set-route-component
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.3 |
| Published | 2022-01-29 |
| First published | 2022-01-26 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | 12.* \|\| 14.* \|\| >= 16 |
| Dependencies | 2 |
| Unpacked size | 8.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 5 |
| Author | Lux |
| Maintainers | luxferresum |
| Keywords | ember-addon |

## Links

- npm: https://www.npmjs.com/package/experimental-set-route-component
- Repository: https://github.com/luxferresum/experimental-set-route-component
- Homepage: https://github.com/luxferresum/experimental-set-route-component#readme
- Issues: https://github.com/luxferresum/experimental-set-route-component/issues
- npm.io page: https://npm.io/package/experimental-set-route-component

## Dependencies (2)

- [ember-cli-babel](https://npm.io/package/ember-cli-babel.md) ^7.26.11
- [ember-cli-htmlbars](https://npm.io/package/ember-cli-htmlbars.md) ^6.0.1

## Recent versions

- 0.0.3 (latest) — 2022-01-29
- 0.0.2 — 2022-01-26
- 0.0.1 — 2022-01-26

## README

experimental-set-route-component
==============================================================================

This is an experimental polyfill for the
[unmerged `setRouteComponent` RFC 731](https://github.com/emberjs/rfcs/pull/731).

`setRouteComponent` can be imported as follows:

```
import { setRouteComponent } from 'experimental-set-route-component';
```

Compatibility
------------------------------------------------------------------------------

* Ember.js v3.24 or above
* Ember CLI v3.24 or above
* Node.js v12 or above


Installation
------------------------------------------------------------------------------

```
ember install experimental-set-route-component
```


Usage
------------------------------------------------------------------------------

This probably should be used by other addons experimenting with routable
components.
Examples can be found in the Dummy App.

This is also compatible with `ember-template-imports` and `.gjs` files.
So this *will* work:

```
import Route from '@ember/routing/route';
import { setRouteComponent } from 'experimental-set-route-component';

const RoutableComponentYeah = <template>
  Whatever
</template>

export default class FooRoute extends Route {}
setRouteComponent(RoutableComponentYeah, FooRoute);
```


Contributing
------------------------------------------------------------------------------

See the [Contributing](CONTRIBUTING.md) guide for details.


License
------------------------------------------------------------------------------

This project is licensed under the [MIT License](LICENSE.md).

---
_Source: https://npm.io/package/experimental-set-route-component · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
