MCPcopy Create free account
hub / github.com/apache/cloudstack / resumeBootstrapInternal

Function resumeBootstrapInternal

tools/ngui/static/js/lib/angular.js:971–988  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

969 */
970function bootstrap(element, modules) {
971 var resumeBootstrapInternal = function() {
972 element = jqLite(element);
973 modules = modules || [];
974 modules.unshift(['$provide', function($provide) {
975 $provide.value('$rootElement', element);
976 }]);
977 modules.unshift('ng');
978 var injector = createInjector(modules);
979 injector.invoke(['$rootScope', '$rootElement', '$compile', '$injector',
980 function(scope, element, compile, injector) {
981 scope.$apply(function() {
982 element.data('$injector', injector);
983 compile(element)(scope);
984 });
985 }]
986 );
987 return injector;
988 };
989
990 var NG_DEFER_BOOTSTRAP = /^NG_DEFER_BOOTSTRAP!/;
991

Callers 1

bootstrapFunction · 0.85

Calls 5

createInjectorFunction · 0.85
compileFunction · 0.85
valueMethod · 0.45
invokeMethod · 0.45
dataMethod · 0.45

Tested by

no test coverage detected