Created
April 7, 2020 15:27
-
-
Save jsmanifest/df49dc35745901250d3d0ea34294fb3f 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
class Client extends Person { | |
setName(name) { | |
this.name = name | |
} | |
} | |
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') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment