{"id":26507596,"url":"https://github.com/instance-oom/angular2-ace","last_synced_at":"2025-03-20T23:29:18.255Z","repository":{"id":57179475,"uuid":"72600109","full_name":"instance-oom/angular2-ace","owner":"instance-oom","description":"angular2 components for ace editor","archived":false,"fork":false,"pushed_at":"2016-11-02T07:59:14.000Z","size":50,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-08T08:17:06.132Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/instance-oom.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-11-02T03:20:46.000Z","updated_at":"2017-11-28T10:14:09.000Z","dependencies_parsed_at":"2022-09-14T02:31:32.192Z","dependency_job_id":null,"html_url":"https://github.com/instance-oom/angular2-ace","commit_stats":null,"previous_names":["lon-yang/angular2-ace"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/instance-oom%2Fangular2-ace","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/instance-oom%2Fangular2-ace/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/instance-oom%2Fangular2-ace/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/instance-oom%2Fangular2-ace/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/instance-oom","download_url":"https://codeload.github.com/instance-oom/angular2-ace/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244709442,"owners_count":20497073,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-03-20T23:29:17.770Z","updated_at":"2025-03-20T23:29:18.245Z","avatar_url":"https://github.com/instance-oom.png","language":"TypeScript","readme":"# angular2-ace\nangular2 components for ace editor\n\n# Required\n```html\n\u003cscript src=\"//cdn.bootcss.com/ace/1.2.5/ace.js\"\u003e\u003c/script\u003e\n```\n\n# Usage\n```typescript\nimport { LAceEditorModule } from 'angular2-ace';\n\n@NgModule({\n  imports: [\n    BrowserModule,\n    FormsModule,\n    LAceEditorModule\n  ],\n  declarations: [\n    AppComponent\n  ],\n  bootstrap: [AppComponent]\n})\nexport class AppModule { }\n```\n\n## Template\n```html\n\u003cl-ace-editor [mode]=\"mode\" [options]=\"aceOption\" [(ngModel)]=\"editValue\"\u003e\u003c/l-ace-editor\u003e\n```\n\n## Typescript\n```typescript\nexport class AppComponent {\n\n  private aceOption: any;\n  private mode: string = \"text\";\n  private editValue: string = \"hello\";\n\n  constructor() {\n\n  }\n\n  ngOnInit() {\n    this.aceOption = {\n      readonly: false,\n      theme: 'twilight',\n      onLoaded: (editor) =\u003e {\n        editor.$blockScrolling = Infinity\n        editor.setOptions({\n          minLines: 15,\n          maxLines: 25\n        })\n      },\n      onChange: (e) =\u003e {\n\n      }\n    }\n  }\n}\n```\n\n## Options Define \n```typescript\nexport interface IAceEditorOption {\n  readonly: boolean;\n  theme: string;\n  fontSize: number;  \n  tabSize: number;\n  enableEmmet: boolean;\n  enableSnippets: boolean;\n  showPrintMargin: boolean;\n  onLoaded: Function;\n  onChange: Function;\n}\n```","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finstance-oom%2Fangular2-ace","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Finstance-oom%2Fangular2-ace","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finstance-oom%2Fangular2-ace/lists"}