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

How to set AppID value dynamically #11

Open
nileshzala005 opened this issue Jan 27, 2020 · 2 comments
Open

How to set AppID value dynamically #11

nileshzala005 opened this issue Jan 27, 2020 · 2 comments

Comments

@nileshzala005
Copy link

nileshzala005 commented Jan 27, 2020

I want to set AppId value from API response based on the environment. How Can I set it using APP_INITIALIZER of angular ? or is there any other way I can set it?
const agoraConfig: AgoraConfig = {
AppID: ' ',
};

imports: [
BrowserModule,
NgxAgoraModule.forRoot(agoraConfig)
],

@andalike
Copy link

andalike commented Apr 2, 2020

Hey Nilesh,
Was the plugin working for you?

@nileshzala005
Copy link
Author

@andalike not able to set AppId in module dynamically but I have created new service and binding AppId from API response . in AppMoodule just initialize without AppId

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