Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface ControllerOptions

example
var ctrlOptions = {
    path: './implementations_all/controllers',
    controllers: {
        application: {
            addModuleExport: true
        },
        calendar: {
            file: path.resolve('./implementations/controllers/calendar.js')
        },
        application2: false,
        application3: {exclude: true},
    }
};

Hierarchy

Index

Properties

Optional addModuleExport

addModuleExport: boolean | string

for automatically converting old-style implementations that are no CommonJS or AMD modules: if true, explicitly exports the implementation resource, i.e. adds something like

module.exports. = ;

to the implementation source/module.

If string, the specified string will be used for the export.

Optional controllers

controllers: boolean | {}

Optional exclude

exclude: boolean

if true, the corresponding implementation will be excluded (when parsing path)

Optional path

path: string

file path for (recursively) searching controller implementation files: path/<controller ID>.js

Generated using TypeDoc