JSFiddle - React, Tailwind, and code Playground

by Joseph_Wang

HTML

<div ng-app="myApp" ng-controller='mainCtrl as ctrl'>
  <div ng-repeat="data in ctrl.array">
    <span>{{data}}</span>
  </div>
  <div ng-repeat="data in ctrl.array2">
    <span>{{data}}</span>
  </div>
</div>

JavaScript

angular.module('myApp', [])
  .controller('mainCtrl', [function() {
    var self = this;
    self.array = [20, 20, 60, 10]; //will cause error here
    self.array2=['A','B','C','D','A']; //will cause error here
  }]);