2021-10-17 18:26:00 +02:00
|
|
|
---
|
|
|
|
title: inject
|
|
|
|
---
|
2021-08-25 16:09:31 +02:00
|
|
|
|
|
|
|
```js
|
|
|
|
inject: {
|
|
|
|
front: "back"
|
|
|
|
}
|
|
|
|
```
|
|
|
|
|
|
|
|
An object of key/value pairs of parts. The `value` part will be injected in the `key` part.
|
|
|
|
|
|
|
|
By *injected* we mean rather than starting out with a fresh part, you'll get a part that
|
|
|
|
has the points, paths, and snippets of the `value` part.
|
|
|
|
|
|
|
|
<Tip>
|
|
|
|
|
2021-08-25 16:16:51 +02:00
|
|
|
See [the Howto on Part inheritance](/howtos/code/inject) for an example.
|
2021-08-25 16:09:31 +02:00
|
|
|
|
|
|
|
</Tip>
|