MCPcopy Index your code
hub / github.com/angular/angular / defineAppModule

Function defineAppModule

packages/upgrade/static/testing/test/mocks.ts:54–72  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

52export const shoppingCartInstance: {inventory?: Inventory} = {};
53
54export function defineAppModule() {
55 ng.module_('app', [])
56 .factory('logger', downgradeInjectable(Logger))
57 .factory('inventory', downgradeInjectable(Inventory))
58 .factory('serverRequest', [
59 'logger',
60 function (logger: Logger) {
61 serverRequestInstance.logger = logger;
62 return serverRequestInstance;
63 },
64 ])
65 .factory('shoppingCart', [
66 'inventory',
67 function (inventory: Inventory) {
68 shoppingCartInstance.inventory = inventory;
69 return shoppingCartInstance;
70 },
71 ]);
72}
73/* END: AngularJS bits */

Calls 2

downgradeInjectableFunction · 0.85
factoryMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…