JSFiddle - React, Tailwind, and code Playground
by Varit Patel
HTML
<div ng-app="app" ng-controller="ctrl" id="stuff">
</div>
<button onclick="getStuff()">get stuff</button>
JavaScript
var app = angular.module('app', []).controller('ctrl', function($scope) {
$scope.inside = { 'name': 'guy', 'idk': 'blah' };
$scope.abc = function(value) {
console.log(value);
}
});
var getStuff= function() {
var outside = angular.element(document.getElementById('stuff')).scope().abc('called');
//console.log(outside.inside)
}