# ngx-dyncmp
**Repository Path**: powersky/ngx-dyncmp
## Basic Information
- **Project Name**: ngx-dyncmp
- **Description**: 轻量的Angular动态创建指令
- **Primary Language**: Unknown
- **License**: MIT
- **Default Branch**: master
- **Homepage**: None
- **GVP Project**: No
## Statistics
- **Stars**: 1
- **Forks**: 0
- **Created**: 2020-09-20
- **Last Updated**: 2020-12-19
## Categories & Tags
**Categories**: Uncategorized
**Tags**: None
## README
# NgxDyncmp
[]()
[]()
[](https://github.com/996icu/996.ICU/blob/master/LICENSE)
A lightweight dynamic component directive with full life-cycle support for inputs and outputs.
[](https://nodei.co/npm/@flywine93/ngx-dyncmp/)
| Angular | ngx-dyncmp| NPM package |
| :---: | :---: | :---: |
| 9.x.x | 9.x.x | @flywine93/ngx-dyncmp@^9.0.0 |
## Demo
[dynamic component demo online](https://93alliance.github.io/ngx-dyncmp/)
[stackblitz demo](https://stackblitz.com/edit/angular-ngx-dyncmp-demo?file=src/app/app.component.ts)
## Installation
```
npm install @flywine93/ngx-dyncmp --save
```
## Features
- Lightweight
- Data synchronization
- A single input attribute triggers update
## Usage
Import `NgxDyncmpModule` where you need to render dynamic components:
```typescript
import { NgxDyncmpModule } from '@flywine93/ngx-dyncmp';
@NgModule({
imports: [NgxDyncmpModule],
})
export class MyModule {}
```
### ngxDyncCmp Directive
The following example will dynamically create a Todo component.
```html