Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
require('jquery');
var angular = require('angular');
var EXTENSION_ID = chrome.i18n.getMessage('@@extension_id');
angular.bootstrap(document, [angular.module('app', [// Dependencies
require('angular-animate'),
// Application Components
require('./hovercard-components'),
require('./common-components'),
// Data Related Components
require('./content-components'),
// API Specific Components
require('./imgur-components')]).name]);
window.parent.postMessage({ msg: EXTENSION_ID + '-hovercard-ready' }, '*');
exception.message += ' (caused by "' + cause + '")';
throw exception;
};
});
module.run([
'$injector',
function($injector) {
inject = function inject(func) {
return $injector.invoke(func);
};
QUnit.start();
}
]);
angular.bootstrap(document, ['kubernetes.nodes.tests']);
}
angular.element(document).ready(() => {
angular.bootstrap(document, ['main']);
});
exception.message += ' (caused by "' + cause + '")';
throw exception;
};
});
module.run([
'$injector',
function($injector) {
inject = function inject(func) {
return $injector.invoke(func);
};
QUnit.start();
}
]);
angular.bootstrap(document, ['registry.projects.tests']);
}
initi18n().then(() => {
bootstrap(document.body, ['app'], { strictDi: true });
});
' confirm="{{\'CONFIRM_MESSAGE\' | translate}}"' +
' confirm-title="{{\'CONFIRM\' | translate }}"' +
' confirm-placement="left"' +
' confirm-class="popover"' +
' cancel-handler="$form.$cancel()"' +
' ng-click="$event.stopPropagation();">' +
'<span class="fa fa-check"></span>' +
'';
editableThemes.bs3.cancelTpl = '<button class="btn btn-default" type="button">' +
'<span class="fa fa-times"></span>' +
'</button>';
editableOptions.theme = 'bs3';
}
]);
angular.bootstrap(document, ['alien4cloud']);
};
const angularDecorator = story => {
const node = document.createElement('div');
node.innerHTML = story();
const app = angular.bootstrap(node, [APP_NAME], {strictDi: true});
useEffect(() => () => {
app.get('$rootScope').$destroy();
node.innerHTML = '';
});
return node;
};
angular.element(document).ready(function() {
angular.bootstrap(document, [appName]);
});
angular.element(document).ready(function() {
let body = document.body;
let app = angular.module('crane', ['ngRoute', material, main,]);
angular.bootstrap(body, [app.name], {strictDi: false});
});
angular.element(document).ready(() => angular.bootstrap(element, [ Target.$angularModule.name ], { strictDi: strictDi }));
};