JSFiddle - React, Tailwind, and code Playground

by Dogbert

HTML

<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.1.5/angular.js"></script>
<ul>
    <li ng-repeat="post in posts">
        <span ng-click="sup(post.title)">Sup?</span>
        {{post.title}}
    </li>
</ul>

JavaScript

function MainCtrl($scope) {
    $scope.posts = [
        { title: "a" },
        { title: "b" },
        { title: "c" }
    ];
    $scope.sup = alert.bind(window);
}