Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

ace-angular

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ace-angular

Module to use ace editor in angular js

  • 0.1.0
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

ace-angular

Using Ace Editor in AngularJS

Requeriments

  • AngularJS: npm install angular
  • Ace Builds: npm install ace-builds

Install

npm install ace-angular

Usage

<!-- Load Angular -->
<script src="node_modules/angular/angular.js"></script>
<!-- load ace -->
<script src="node_modules/ace-builds/src-min/ace.js"></script>
<!-- load ace language tools -->
<script src="node_modules/ace-builds/src-min/ext-language_tools.js"></script>
<!-- load ace-angular -->
<script src="node_modules/ace-angular/ace-angular.js"></script>

Create angular module

var app = angular.module('myapp',['ace.angular']);

Using directive

<div ace-editor="aceOptions" ng-model="aceContent"></div>

Controller

$scope.aceOptions = {
	method: 'sql',
	theme: 'sqlserver',
	onLoad: function(editor, session, ace){
		// do anythig
	}
}

Keywords

FAQs

Package last updated on 06 Jun 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc