lib/pancakes.angular.plugin.js
function PancakesAngularPlugin(opts) {
    this.templateDir    = path.join(__dirname, 'transformers');
    this.pancakes       = opts.pluginOptions.pancakes;

    // initialize Jyt plugins
    this.registerJytPlugins();

    // initialize all directives and load them into memory
    this.initDirectives(opts);

    // if mobile app then register mobile components
    if (this.isMobileApp()) {
        this.registerMobileComponents();
    }

    // set all the transformation functions (used by the pancakes module transformation.factory
    this.transformers = {
        apiclient:  apiTrans,
        app:        appTrans,
        basic:      basicTrans,
        routing:    routingTrans,
        uipart:     uipartTrans
    };
}
function PancakesAngularPlugin(opts) {
    this.templateDir    = path.join(__dirname, 'transformers');
    this.pancakes       = opts.pluginOptions.pancakes;

    // initialize Jyt plugins
    this.registerJytPlugins();

    // initialize all directives and load them into memory
    this.initDirectives(opts);

    // if mobile app then register mobile components
    if (this.isMobileApp()) {
        this.registerMobileComponents();
    }

    // set all the transformation functions (used by the pancakes module transformation.factory
    this.transformers = {
        apiclient:  apiTrans,
        app:        appTrans,
        basic:      basicTrans,
        routing:    routingTrans,
        uipart:     uipartTrans
    };
}
function PancakesAngularPlugin ( opts ) { this . templateDir = path . join ( __dirname , 'transformers' ) ; this . pancakes = opts . pluginOptions . pancakes ; // initialize Jyt plugins this . registerJytPlugins ( ) ; // initialize all directives and load them into memory this . initDirectives ( opts ) ; // if mobile app then register mobile components if ( this . isMobileApp ( ) ) { this . registerMobileComponents ( ) ; } // set all the transformation functions (used by the pancakes module transformation.factory this . transformers = { apiclient : apiTrans , app : appTrans , basic : basicTrans , routing : routingTrans , uipart : uipartTrans } ; }
Constructor for the pancakes angular plugin
@param opts
@constructor
Constructor for the pancakes angular plugin