Reputation: 1792
The output in the console of the following code:
console.log(userValues);
is:
However, when I call it from the code (inside the ngOnInit()
, I'm using Angular 6):
console.log(userValues.USER_AUTH_MODE);
And this prints undefined
.
Is there some other special way to call the getter that will return the object correctly?
Upvotes: 0
Views: 54
Reputation: 2330
You circled "USER_AUTH_METHOD" property but are attempting to log "USER_AUTH_MODE" property which apparently does not exist
Upvotes: 1