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

Function getUpgradeAppType

packages/upgrade/src/common/src/util.ts:91–95  ·  view source on GitHub ↗
($injector: IInjectorService)

Source from the content-addressed store, hash-verified

89}
90
91export function getUpgradeAppType($injector: IInjectorService): UpgradeAppType {
92 return $injector.has(UPGRADE_APP_TYPE_KEY)
93 ? $injector.get(UPGRADE_APP_TYPE_KEY)
94 : UpgradeAppType.None;
95}
96
97export function isFunction(value: any): value is Function {
98 return typeof value === 'function';

Callers 2

directiveFactoryFunction · 0.90
validateInjectionKeyFunction · 0.85

Calls 2

hasMethod · 0.65
getMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…