I have a doubt, I have already tried other forums and I did not find the solution. I tested the code below for demonstration purposes only.
*//dentro do controle do angular*
angular.module("NaBalada").controller("NaBaladaLocal", function(data){
return $scope.teste = 'Testando Angular';
console.log(testejs)
});
*//Script normal JS*
console.log(teste);*//teste do $scope.teste*
let testejs = 'Variável fora do angular, pra reconhecer dentro do controller'
So, my problem is to get the variables to be seen inside and out, so that I can get some value in my application, the error that appears is 'test is not defined' and 'testejs is not defined' p>
Someone can help me, right away, thanks!