MCPcopy Create free account
hub / github.com/EricSimons/ionic-course / publishExternalAPI

Function publishExternalAPI

code/songhop/www/lib/angular/angular.js:2116–2247  ·  view source on GitHub ↗
(angular)

Source from the content-addressed store, hash-verified

2114
2115
2116function publishExternalAPI(angular) {
2117 extend(angular, {
2118 'bootstrap': bootstrap,
2119 'copy': copy,
2120 'extend': extend,
2121 'equals': equals,
2122 'element': jqLite,
2123 'forEach': forEach,
2124 'injector': createInjector,
2125 'noop': noop,
2126 'bind': bind,
2127 'toJson': toJson,
2128 'fromJson': fromJson,
2129 'identity': identity,
2130 'isUndefined': isUndefined,
2131 'isDefined': isDefined,
2132 'isString': isString,
2133 'isFunction': isFunction,
2134 'isObject': isObject,
2135 'isNumber': isNumber,
2136 'isElement': isElement,
2137 'isArray': isArray,
2138 'version': version,
2139 'isDate': isDate,
2140 'lowercase': lowercase,
2141 'uppercase': uppercase,
2142 'callbacks': {counter: 0},
2143 'getTestability': getTestability,
2144 '$$minErr': minErr,
2145 '$$csp': csp,
2146 'reloadWithDebugInfo': reloadWithDebugInfo
2147 });
2148
2149 angularModule = setupModuleLoader(window);
2150 try {
2151 angularModule('ngLocale');
2152 } catch (e) {
2153 angularModule('ngLocale', []).provider('$locale', $LocaleProvider);
2154 }
2155
2156 angularModule('ng', ['ngLocale'], ['$provide',
2157 function ngModule($provide) {
2158 // $$sanitizeUriProvider needs to be before $compileProvider as it is used by it.
2159 $provide.provider({
2160 $$sanitizeUri: $$SanitizeUriProvider
2161 });
2162 $provide.provider('$compile', $CompileProvider).
2163 directive({
2164 a: htmlAnchorDirective,
2165 input: inputDirective,
2166 textarea: inputDirective,
2167 form: formDirective,
2168 script: scriptDirective,
2169 select: selectDirective,
2170 style: styleDirective,
2171 option: optionDirective,
2172 ngBind: ngBindDirective,
2173 ngBindHtml: ngBindHtmlDirective,

Callers 1

angular.jsFile · 0.70

Calls 2

extendFunction · 0.70
setupModuleLoaderFunction · 0.70

Tested by

no test coverage detected