Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Jan 17 14:34
    hiroshifariassaito review_requested #114
  • Dec 31 2019 19:24
    sh3d2 closed #115
  • Dec 31 2019 19:13
    sh3d2 opened #115
  • Dec 31 2019 17:19
    sh3d2 commented #111
  • Dec 31 2019 17:18
    sh3d2 commented #111
  • Dec 31 2019 17:13
    sh3d2 commented #111
  • Dec 31 2019 17:13
    sh3d2 commented #111
  • Dec 31 2019 15:04
    sh3d2 commented #111
  • Dec 31 2019 10:55
    sh3d2 commented #111
  • Dec 23 2019 12:56
    hiroshifariassaito opened #114
  • Dec 16 2019 19:43
    rafalfigura commented #109
  • Dec 14 2019 16:31
    lineldcosta commented #109
  • Dec 12 2019 18:55
    rafalfigura commented #109
  • Dec 02 2019 15:09
    lenartbezek commented #112
  • Dec 02 2019 14:58
    lenartbezek commented #112
  • Nov 29 2019 22:08
    adrielcodeco opened #113
  • Nov 25 2019 13:45
    lenartbezek opened #112
  • Nov 18 2019 15:05
    justinmchase commented #107
  • Nov 18 2019 12:42
    Spolja commented #107
  • Nov 05 2019 00:07
    vbraun commented #96
amonn phillip
@amonnphillip

Hello.. I have a question, it seems the resolution of parameters does not happen before a class is constructed... So this case

Container.set('config-name', 'debug');
@Service()
export class Config {
  @Injector()
  private configName: string;
  public constructor() {
    ...
  }
}

Container.get(Config);

The configName parameter is not defined in when execution hits the constructor.. Also I notice..

Container.set('config-name', 'debug');
@Service()
export class Config {
  public constructor(private configName: string) {
    ...
  }
}

Container.get(Config);

The parameter configName is never set either.. Is this supported?

Noah
@BitForger
Hey all! Quick question on the way the Container works in the context of a JSONControllers Express server. Say I want to store a user ID to be injected elsewhere in the application. Do I run into the possibility of other id's replacing the one I have already stored.