angular / js access variable scope in an external js

0

Good morning,

In the angle I have the following variable:

$scope.aluno= aluno.matricula;

In html, a js

<script>
var scope1 = angular.element($('aluno')).scope();
alert(scope1)
</script>

the scope1 variable is being reset. what is the correct way to search for the student variable that is in the angular scope and bring it to scope1 in the external js?

    
asked by anonymous 26.01.2018 / 12:27

0 answers