-
-
Save ramiresnas/6c482826ec1e8fa537c4a4fe607a1b99 to your computer and use it in GitHub Desktop.
Acessando this dentro de uma função anônimo
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var x = 0; | |
ngOnInit() { | |
var changeMapLocation = changeMapLocation(); | |
let self = this | |
if(window.navigator.geolocation){ | |
navigator.geolocation.getCurrentPosition(function(position) { | |
self.x = 10; | |
}); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment