All Projects → seiyria → Ng2 Ace

seiyria / Ng2 Ace

Licence: mit
A basic ace editor directive for angular 2.

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to Ng2 Ace

ng-leaflet
Angular 2 component for Leaflet 1.x (WIP - Help Wanted)
Stars: ✭ 16 (-51.52%)
Mutual labels:  angular2, ng2
ng2-gravatar
Angular2 gravatar directive
Stars: ✭ 21 (-36.36%)
Mutual labels:  angular2, ng2
ng2-STOMP-Over-WebSocket
STOMP Over WebSocket service for angular2
Stars: ✭ 35 (+6.06%)
Mutual labels:  angular2, ng2
angular-progress-http
[DEPRECATED] Use @angular/common/http instead
Stars: ✭ 43 (+30.3%)
Mutual labels:  angular2, ng2
Angular
UI-Router for Angular: State-based routing for Angular (v2+)
Stars: ✭ 287 (+769.7%)
Mutual labels:  ng2, angular2
awesome-angular
💖 A list of awesome Angular (2️⃣➕) resources
Stars: ✭ 61 (+84.85%)
Mutual labels:  angular2, ng2
ng-elm
Write Angular components in Elm.
Stars: ✭ 41 (+24.24%)
Mutual labels:  angular2, ng2
ng-data-picker
🏄🏼 A data picker based on Angular 4+ (like native datetime picker of iOS)
Stars: ✭ 24 (-27.27%)
Mutual labels:  angular2, ng2
ngx-magicsearch
Magic Search/Faceted Search Library for Angular 2
Stars: ✭ 19 (-42.42%)
Mutual labels:  angular2, ng2
angular2-cookie-law
Angular2+ component that provides a banner to inform users about cookie law
Stars: ✭ 38 (+15.15%)
Mutual labels:  angular2, ng2
ng2-storage
A local and session storage wrapper for angular 2.
Stars: ✭ 14 (-57.58%)
Mutual labels:  angular2, ng2
Ngx Admin
Customizable admin dashboard template based on Angular 10+
Stars: ✭ 23,286 (+70463.64%)
Mutual labels:  ng2, angular2
ng2-fontawesome
An easy-to-use directive for font awesome icons.
Stars: ✭ 20 (-39.39%)
Mutual labels:  angular2, ng2
Angular2 Carousel
An lightweight , touchable and responsive library to create a carousel for angular 2 / 4 / 5
Stars: ✭ 26 (-21.21%)
Mutual labels:  ng2, angular2
ic-datepicker
Angular (2+) datepicker component
Stars: ✭ 27 (-18.18%)
Mutual labels:  angular2, ng2
ng-seed
Simple Angular seed project with commonly used features.
Stars: ✭ 12 (-63.64%)
Mutual labels:  angular2, ng2
Truly Ui
Truly-UI - Web Angular UI Components for Desktop Applications (Electron, NW, APP JS)
Stars: ✭ 195 (+490.91%)
Mutual labels:  ng2, angular2
angular2-signature-pad
Signature pad component for Angular 2.x and above.
Stars: ✭ 17 (-48.48%)
Mutual labels:  angular2, ng2
ng2-fused
FuseBox plugins and utilities for building Angular2 applications.
Stars: ✭ 13 (-60.61%)
Mutual labels:  angular2, ng2
Cc
一个基于angular5.0.0+ng-bootstrap1.0.0-beta.8+bootstrap4.0.0-beta.2+scss的后台管理系统界面(没基础的同学请先自学基础,谢谢!)
Stars: ✭ 416 (+1160.61%)
Mutual labels:  ng2, angular2

ng2-ace

A basic ace editor directive for angular 2.

Install

npm i -s ng2-ace

Sample Usage

import { Component } from 'angular2/core';

import { AceEditorDirective } from 'ng2-ace';

import 'brace/theme/clouds';
import 'brace/mode/sql';

@Component({
  directives: [AceEditorDirective],
  template: `
  <div ace-editor
       [text]="text"
       [mode]="'sql'"
       [theme]="'clouds'"
       [options]="options"
       [readOnly]="false"
       (textChanged)="onChange($event)"
       style="display:block; height: 80vh; width:100%"></div>
  `
})
export class MyComponent {
  constructor() {
    this.text = 'test';
    this.options = { printMargin: false };
    this.onChange = (data) => {
      console.log(data);
    }
  }
}

Important pieces to note in the HTML template: [ace-editor] attribute, [text], [theme], [mode], [readOnly], [options] inputs, (textChanged) output. As per Ace, you must also make it a display: block; and give it a width and height.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].