angular.Module.name

name Name of the module.

angular.Module.filter()

filter(name, filterFactory); See $filterProvider.register(). Note: Filter names must be valid angular Expressions identifiers, such as uppercase or orderBy. Names with special characters, such as hyphens and dots, are not allowed. If you wish to namespace your filters, then you can use capitalization (myappSubsectionFilterx) or underscores (myapp_subsection_filterx). Parameters Param Type Details name string Filter name - this must be a valid angular expression identifier filterFacto

angular.Module.factory()

factory(name, providerFunction); See $provide.factory(). Parameters Param Type Details name string service name providerFunction Function Function for creating new instance of the service.

angular.Module.directive()

directive(name, directiveFactory); See $compileProvider.directive(). Parameters Param Type Details name stringObject Directive name, or an object map of directives where the keys are the names and the values are the factories. directiveFactory Function Factory function for creating new instance of directives.

angular.Module.decorator()

decorator(The, This); See $provide.decorator(). Parameters Param Type Details The string name of the service to decorate. This Function function will be invoked when the service needs to be instantiated and should return the decorated service instance.

angular.Module.controller()

controller(name, constructor); See $controllerProvider.register(). Parameters Param Type Details name stringObject Controller name, or an object map of controllers where the keys are the names and the values are the constructors. constructor Function Controller constructor function.

angular.Module.constant()

constant(name, object); Because the constants are fixed, they get applied before other provide methods. See $provide.constant(). Parameters Param Type Details name string constant name object * Constant value.

angular.Module.config()

config(configFn); Use this method to register work which needs to be performed on module loading. For more about how to configure services, see Provider Recipe. Parameters Param Type Details configFn Function Execute this function on module load. Useful for service configuration.

angular.Module.component()

component(name, options); See $compileProvider.component(). Parameters Param Type Details name string Name of the component in camel-case (i.e. myComp which will match as my-comp) options Object Component definition object (a simplified directive definition object)

angular.Module.animation()

animation(name, animationFactory); NOTE: animations take effect only if the ngAnimate module is loaded. Defines an animation hook that can be later used with $animate service and directives that use this service. module.animation('.animation-name', function($inject1, $inject2) { return { eventName : function(element, done) { //code to run the animation //once complete, then run done() return function cancellationFunction(element) { //code to cancel the animation