Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Consult, constructor has no effect #38

Closed
beclass opened this issue Apr 8, 2022 · 1 comment
Closed

Consult, constructor has no effect #38

beclass opened this issue Apr 8, 2022 · 1 comment

Comments

@beclass
Copy link

beclass commented Apr 8, 2022

image

How does the constructor take effect when the bootstrapControllers is initialized?

For example, like this ok
export class App{
constructor(private name:string = "111"){
}
test(){
console.log(this.name)
console.log('test function')
}
}
const app = new App()
app.test()

@iyobo
Copy link
Owner

iyobo commented Sep 26, 2023

This actually works now.

@iyobo iyobo closed this as completed Sep 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants