JSFiddle - React, Tailwind, and code Playground

HTML

<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.4.7/angular.min.js"></script>
<section ng-app="app">
    <div id="ctrl" ng-controller="TestCtrl">
        <input type="text" id="text" ng-model="text"/>
    </div>
</section>
<button onclick="clickFunc()">Get text</button>

JavaScript

angular.module("app", []).controller("TestCtrl", TestCtrl);
function TestCtrl(){}

function clickFunc(){
    alert(angular.element(document.getElementsByTagName("input")[0]).scope().text);
}