JSFiddle - React, Tailwind, and code Playground

by Liam Krewer

HTML

<div id="controller" ng-controller="ctrlr">
</div>

JavaScript

var app = angular.module('myApp', []);


app.controller('ctrlr', function($scope ,$sce) {
    $scope.stringValue = "foo";
});



setTimeout(function(){
    var elem = angular.element(document.getElementById('controller'));
    console.log("$scope: ",elem.scope());
    console.log("$sce: ",elem.injector().get('$sce'));
},2000);