JSFiddle - React, Tailwind, and code Playground
by S_YOU
HTML
<div ng-app="app">
<div ng-controller="TestCtrl">
<div ng-init="$scope={}">
<div ng-repeat="(k, v) in ($$=this)" ng-init="$scope[k] = $$[k]" ng-if="k!=='$$'&&k!=='this'&&k!=='$scope'">
</div>
</div>
<pre ng-bind="$scope|json:4"></pre>
</div>
</div>
JavaScript
var app = angular.module('app', [])
.controller('TestCtrl', function ($scope) {
$scope.foo = {
bar: "test bar",
foobar: "test foobar"
};
$scope.zzz = {
bar: "test bar",
foobar: "test foobar"
};
});