JSFiddle - React, Tailwind, and code Playground

by arunachalam

HTML

<div ng-controller="GreetCtrl">
      Hello {{name}}!
    </div>
    <div ng-controller="ListCtrl">
      <ol>
        <li ng-repeat="name in names">{{name}}</li>
      </ol>
    </div>

CSS

.show-scope .doc-example-live.ng-scope,
.show-scope .doc-example-live .ng-scope  {
  border: 1px solid red;
  margin: 3px;
}

JavaScript

function GreetCtrl($scope) {
  $scope.name = 'World';
    console.log('asdfsdf');
}
 
function ListCtrl($scope) {
  $scope.names = ['Igor', 'Misko', 'Vojta'];
}