Angular 2+ CodeEditor Component
npm install @penkz/code-editorshell
npm i @penkz/code-editor
`
$3
`js
import {CodeEditorModule} from '@penkz/code-editor';
@NgModule({
declarations: [AppComponent],
imports: [CodeEditorModule],
bootstrap: [AppComponent]
})
export class AppModule {}
`
$3
`html
[(ngModel)]="model"
>
`
API
$3
| Input | Type | Default | Required | Description |
| ------------- | ------------- | ------------- | ------------- | ------------- |
| title | string | _ | no | History identifier of history list. When valid history identifier is given, then component stores selected item to local storage of user's browser. If it is null then history is hidden. History list is visible if at least one history item is stored. History identifier must be unique. |
| placeHolder | string | - | no | HTML placeholder text. |
| [(ngModel)] | any | _ | no | Tracks the value bound to this directive. Used with Template-driven forms. For more details click here |
| [formControl] / formControlName | string | _ | no | Tracks the FormControl instance bound to the directive. Used with Reactive forms. For more details click here and here |
| isLoading | boolean | false | no | Set the loading state when data is being loaded. |
| disabled | boolean | false` | no | input disable/enable. |