$controllerProvider.allowGlobals()

allowGlobals(); If called, allows $controller to find controller constructors on window

$controllerProvider

$controller provider in module ng The $controller service is used by Angular to create new controllers. This provider allows controller registration via the register method. Methods has(name); Parameters Param Type Details name string Controller name to check. register(name, constructor); 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 funct

$controller

$controllerProvider service in module ng $controller service is responsible for instantiating controllers. It's just a simple call to $injector, but extracted into a service, so that one can override this service with BC version. Dependencies $injector Usage $controller(constructor, locals); Arguments Param Type Details constructor function()string If called with a function then it's considered to be the controller constructor function. Otherwise it's considered to be a string whi

$compileProvider.onChangesTtl()

onChangesTtl(limit); Sets the number of times $onChanges hooks can trigger new changes before giving up and assuming that the model is unstable. The current default is 10 iterations. In complex applications it's possible that dependencies between $onChanges hooks and bindings will result in several iterations of calls to these hooks. However if an application needs more than the default 10 iterations to stabilize then you should investigate what is causing the model to continuously change duri

$compileProvider.imgSrcSanitizationWhitelist()

imgSrcSanitizationWhitelist([regexp]); Retrieves or overrides the default regular expression that is used for whitelisting of safe urls during img[src] sanitization. The sanitization is a security measure aimed at prevent XSS attacks via html links. Any url about to be assigned to img[src] via data-binding is first normalized and turned into an absolute url. Afterwards, the url is matched against the imgSrcSanitizationWhitelist regular expression. If a match is found, the original url is writt

$compileProvider.directive()

directive(name, directiveFactory); Register a new directive with the compiler. Parameters Param Type Details name stringObject Name of the directive in camel-case (i.e. ngBind which will match as ng-bind), or an object map of directives where the keys are the names and the values are the factories. directiveFactory function()Array An injectable directive factory function. See the directive guide and the compile API for more info. Returns ng.$compileProvider Self for chaining.

$compileProvider.debugInfoEnabled()

debugInfoEnabled([enabled]); Call this method to enable/disable various debug runtime information in the compiler such as adding binding information and a reference to the current scope on to DOM elements. If enabled, the compiler will add the following to DOM elements that have been bound to the scope ng-binding CSS class $binding data property containing an array of the binding expressions You may want to disable this in production for a significant performance boost. See Disabling Debug D

$compileProvider.component()

component(name, options); Register a component definition with the compiler. This is a shorthand for registering a special type of directive, which represents a self-contained UI component in your application. Such components are always isolated (i.e. scope: {}) and are always restricted to elements (i.e. restrict: 'E'). Component definitions are very simple and do not require as much configuration as defining general directives. Component definitions usually consist only of a template and a c

$compileProvider.aHrefSanitizationWhitelist()

aHrefSanitizationWhitelist([regexp]); Retrieves or overrides the default regular expression that is used for whitelisting of safe urls during a[href] sanitization. The sanitization is a security measure aimed at preventing XSS attacks via html links. Any url about to be assigned to a[href] via data-binding is first normalized and turned into an absolute url. Afterwards, the url is matched against the aHrefSanitizationWhitelist regular expression. If a match is found, the original url is writte

$compileProvider

$compile provider in module ng Methods directive(name, directiveFactory); Register a new directive with the compiler. Parameters Param Type Details name stringObject Name of the directive in camel-case (i.e. ngBind which will match as ng-bind), or an object map of directives where the keys are the names and the values are the factories. directiveFactory function()Array An injectable directive factory function. See the directive guide and the compile API for more info. Retu