angular-alloyeditor

WebJar for angular-alloyeditor

License

License

MIT
Categories

Categories

Angular User Interface Web Frameworks
GroupId

GroupId

org.webjars.bower
ArtifactId

ArtifactId

angular-alloyeditor
Last Version

Last Version

0.0.4
Release Date

Release Date

Type

Type

jar
Description

Description

angular-alloyeditor
WebJar for angular-alloyeditor
Project URL

Project URL

http://webjars.org
Source Code Management

Source Code Management

https://github.com/thiagogarbazza/angular-alloyeditor

Download angular-alloyeditor

How to add to project

<!-- https://jarcasting.com/artifacts/org.webjars.bower/angular-alloyeditor/ -->
<dependency>
    <groupId>org.webjars.bower</groupId>
    <artifactId>angular-alloyeditor</artifactId>
    <version>0.0.4</version>
</dependency>
// https://jarcasting.com/artifacts/org.webjars.bower/angular-alloyeditor/
implementation 'org.webjars.bower:angular-alloyeditor:0.0.4'
// https://jarcasting.com/artifacts/org.webjars.bower/angular-alloyeditor/
implementation ("org.webjars.bower:angular-alloyeditor:0.0.4")
'org.webjars.bower:angular-alloyeditor:jar:0.0.4'
<dependency org="org.webjars.bower" name="angular-alloyeditor" rev="0.0.4">
  <artifact name="angular-alloyeditor" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.webjars.bower', module='angular-alloyeditor', version='0.0.4')
)
libraryDependencies += "org.webjars.bower" % "angular-alloyeditor" % "0.0.4"
[org.webjars.bower/angular-alloyeditor "0.0.4"]

Dependencies

compile (2)

Group / Artifact Type Version
org.webjars.bower : alloyeditor jar [1.2.2,2)
org.webjars.bower : angular jar [1.5.3,2)

Project Modules

There are no modules declared in this project.

angular-alloyeditor

Build Status Coverage Status

Dependency Status DevDependency Status License

AlloyEditor directive for Angular.

Install

Using Bower

bower install --save angular-alloyeditor

Using NPM

npm install --save angular-alloyeditor

Usage

Example

HTML:

<!-- Load files. -->
<script src="angular/angular.min.js"></script>
<script src="alloyeditor/dist/alloy-editor/alloy-editor-all-min.js"></script>
<script src="angular-alloyeditor.js"></script>

<div ng-controller="MyController">
  <alloy-editor id="myEditor" name="myEditor" ng-model="model.content"></alloy-editor>
</div>

JavaScript:

angular
  .module('app', ['alloyeditor'])
  .controller('MyController', MyController);

function MyController() {
  var vm = this;
  vm.model = {
    content: '<h1>AlloyEditor</h1><p>Yes, you can edit this content. <strong>Right here and right now</strong>.</p>'
  };
}

Settings

  • ng-model: binding the view into the model.
  • readonly: is a property that it allows you enable or disable editor.
  • onready: call this function after create instance of the editor.
  • config: allows you to configure the editor in the way you prefer.

License

The angular-alloyeditor project is under MIT license.

Versions

Version
0.0.4