> For the complete documentation index, see [llms.txt](https://ngxf.gitbook.io/platform/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://ngxf.gitbook.io/platform/features/init.md).

# Init

Provides to create any variables in templates.

## Create Variable

An example in `COMPONENT.template.html`.

```markup
<ng-container *init="'LOL' as myVar">
    {{ myVar }}
</ng-container>
```

## Create Async Variable

An example in `COMPONENT.template.html`.

```markup
<ng-container *init="source | async as myVar">
    {{ myVar }}
</ng-container>
```

## Create Nested Variable

An example in `COMPONENT.template.html`.

```markup
<ng-container *init="{
  lol: 'Lol',
  foo: source | async,
  bar: source | async
} as myVar">
  lol: {{ myVar.lol }}
  foo: {{ myVar.foo }}
  bar: {{ myVar.bar }}
</ng-container>
```
