Creating the Context
Introduction
Creating beans
Adding values to the context
const diContext = DiContextFactory.createContext({
baseUrl: 'localhost' // this is a value
});console.log(diContext.baseUrl); //This will printout 'localhost'Adding hints to the context
Parameterless hints
Internal dependencies
Function hints
Functions/classes as values
Combining Hints and Values
Dynamic context

Last updated
Was this helpful?