MCPcopy Create free account
hub / github.com/angular/angular / factory

Function factory

packages/core/test/acceptance/di_spec.ts:3695–3697  ·  view source on GitHub ↗
(token: string)

Source from the content-addressed store, hash-verified

3693 it('should be able to provide an attribute token', () => {
3694 const TOKEN = new InjectionToken<string>('Some token');
3695 function factory(token: string): string {
3696 return token + ' with factory';
3697 }
3698 @Component({
3699 selector: 'my-comp',
3700 template: '...',

Callers 5

jit_spec.tsFile · 0.50
getFactoryOfFunction · 0.50
multiResolveFunction · 0.50
ɵɵarrowFunctionFunction · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected