Miss any of our Open RFC calls?Watch the recordings here! »

This version has been deprecated

Author message:

## NO LONGER MAINTAINED

apeman-ui-contrib-angular-decorating

1.0.2 • Public • Published

apeman-ui-contrib-angular-decorating

Build Status Code Climate Code Coverage npm version bower version

apeman ui module for angular to decorate functions

Installation

Install module via npm

$ npm install apeman-ui-contrib-angular-decorating --save

Generating UI Files.

  1. Define $ui property in your Apemanfile.
  2. Set "apeman-ui-contrib-angular-decorating" to $invoke property.
/**
 * This is example Apemanfile to use "apeman-ui-contrib-angular-decorating".
 */
 
"use strict";
 
module.exports = {
    $pkg: {/*...*/},
    $ui: {
        // Define your own ui.
        "my-ui-01": {
            // UI generation config for each path.
            "assets/public": {
                "$invoke": "apeman-ui-contrib-angular-decorating",
                "$args": [
 
                ],
                "$options": {
 
                }
            }
        }
    }
};

Then, generate ui assets via apeman ui.

# Generate ui from CLI. 
$ apeman ui "my-ui-01"

Options

Values which can be passed to $options property.

Name Type Description

Using UI Files

/**
 * This is example to use "apeman-ui-contrib-angular-decorating".
 */
 
(function () {
    "use strict";
 
    angular
        .module('my-custom-module', [
            'apeman-ui-contrib-angular-decorating'
        ])
        .controller('DemoCtrl', function (apDecorate) {
            var obj01 = {
                doSomething: function () {
                    /*...*/
                }
            };
            apDecorate.decorate(obj01, 'doSomethingMore', function define(origin) {
                return function () {
                    /*...*/
                    return origin.apply(this, arguments); // Call original method.
                }
            })
        });
})();

Documents

License

This software is released under the MIT License.

Links

Keywords

none