JSFiddle - React, Tailwind, and code Playground

by S_YOU

HTML

<div ng-app="app">
    <div ng-controller="TestCtrl as vm">
        <div ng-repeat="(k, v) in (obj=this)">
            <pre ng-bind="obj[k]|json:4"></pre>
        </div>
    </div>
</div>

JavaScript

var app = angular.module('app', [])
	.controller('TestCtrl', function ($scope) {
      	var vm = this;
        
        vm.foo = {
          bar: "test bar",
          foobar: "test foobar"
        };
        
     	vm.scope = $scope;
        
        console.log(vm.scope);
    });