See V Openwork Jaycargogo Through up Split golden Dress Cover Fashion Women Sexy Neck npxOwqaBx
Classic Prom Blue Backless Stripe Fit Strapless Bandeau Cromoncent Women Sexy Long Dress Backless Classic Dress Strapless Women Cromoncent Blue Fit Bandeau Prom Stripe Sexy Long

Strapless Long Blue Stripe Prom Bandeau Fit Sexy Cromoncent Backless Women Classic Dress nUB00q

A constructor parameter decorator that marks a dependency as optional.

See also

Description

The DI framework provides null if the dependency is not found. For example, the following code allows the possibility of a null result:

class Engine {} @ Injectable() class Car { constructor(@ Optional() public engine: Engine) {} } const injector = ReflectiveInjector.resolveAndCreate([Car]); expect(injector.get(Car).engine).toBeNull();
      
      class Engine {}

@Injectable()
class Car {
  constructor(@Optional() public engine: Engine) {}
}

const injector = ReflectiveInjector.resolveAndCreate([Car]);
expect(injector.get(Car).engine).toBeNull();
    

Options