Hi Harry,

I took a closer look to your screenshot. (BTW, pasting snippets as code 
makes it easier to spot issues and help you)
It is a 'this' problem indeed.
In JS, each function had it's own 'this' That means the 'this' in the 
function, is not your class. Hence the error.
Replace the function with an arrow function, and your problem will be gone.

.then( devices => this.choseScale(devices))

should do the trick.

Regards
Sander

-- 
You received this message because you are subscribed to the Google Groups 
"Angular and AngularJS discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply via email to