Created
April 7, 2020 15:29
-
-
Save jsmanifest/8649c91cbce43205cb35373f651722cf to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const dic = new DIC() | |
dic.register('frogOwner', Client) | |
dic.register('frogOwnerLicense', sallysLicense) | |
dic.register('frog', mikeTheToad) | |
dic.factory('frog-owner', FrogParadiseOwner) | |
const frogOwner = dic.get('frog-owner', [ | |
'frogOwner', | |
'frogOwnerLicense', | |
'frog', | |
]) | |
console.log('frog-owner', JSON.stringify(frogOwner, null, 2)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment