amazon-archives / aws-cognito-angular-quickstart

An Angular(v5)-based QuickStart single-page app utilizing Amazon Cognito, S3, and DynamoDB (Serverless architecture)
https://cognito.budilov.com
Apache License 2.0
689 stars 304 forks source link

environment variable not accessible #154

Open fzhangj2ee opened 5 years ago

fzhangj2ee commented 5 years ago

in code, direct reference environment gets undefined.

I found that in debug mode, [scope].environment_1.environment has everything - the question is how to access in code?

I actually found out that use static variable bypassed this issue in cognito.service.ts. but do not understand why...