# angular-directive-builder

> Tools for building angular directives as es6 modules

Latest version **1.0.3** (published 2015-11-25) · MIT license · 0 weekly downloads

## Install

```sh
npm install angular-directive-builder
pnpm add angular-directive-builder
yarn add angular-directive-builder
bun add angular-directive-builder
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.3 |
| Published | 2015-11-25 |
| First published | 2015-04-26 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | npm3.0.0 |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Tom Clarkson |
| Maintainers | tqc |

## Links

- npm: https://www.npmjs.com/package/angular-directive-builder
- Repository: https://github.com/tqc/directive-builder
- Homepage: https://github.com/tqc/directive-builder#readme
- Issues: https://github.com/tqc/directive-builder/issues
- npm.io page: https://npm.io/package/angular-directive-builder

## Dependencies (1)

- [traceur](https://npm.io/package/traceur.md) 0.0.89

## Recent versions

- 1.0.3 (latest) — 2015-11-25
- 1.0.2 — 2015-11-19
- 1.0.1 — 2015-06-25
- 1.0.0 — 2015-04-26

## README

# Angular Directive Builder

[ ![Codeship Status for tqc/angular-directive-builder](https://codeship.com/projects/79fc41e0-1b30-0133-90d0-7e346f2e432c/status?branch=master)](https://codeship.com/projects/94441)

Tools for building angular directives as es6 modules

## Install

    npm install angular-directive-builder

## Usage

Directives are defined using the below format rather than the standard module.directive call.

    export default {
        name: "slider",
        injections: ["$parse"],
        fn: function($parse) {
            return {
                template: require("./template.html"),
                replace: true,
                scope: true,
                link: function(scope, element, attrs) {
                    ...
                }
            }
        }

This allows the directive to be added to a browserify based app using 
    
            this.registerOptionalDirective(require("slider"));

See https://github.com/tqc/ChondricJS/blob/master/es6/core.js for details.

For use in standalone angular apps, the source file is compiled into a regular ES5 angular module.

See https://github.com/tqc/tc-slider for an example.

---
_Source: https://npm.io/package/angular-directive-builder · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
