Loads controllers from the current file's controllers directory. steal.controllers adds the suffix controller.js to each name passed in. Example: If you want to load controllers/recipecontroller.js and controllers/ingredient_controller.js, write:
steal.controllers
controller.js
steal.controllers('recipe', 'ingredient')
steal.controllers(controller) -> steal
{String+}
the name of of the {NAME}_controller.js file to load. You can pass multiple controller names.
{steal}
the steal function for chaining.
Loads controllers from the current file's controllers directory.
steal.controllersadds the suffixcontroller.jsto each name passed in.Example:
If you want to load controllers/recipecontroller.js and controllers/ingredient_controller.js, write: