JSFiddle - React, Tailwind, and code Playground
by taly2808
HTML
<div ng-app>
Typing here: <input type="text" ng-model="inputText" />
<h2>I have typing: {{ inputText }}</h2>
<hr/>
<h2>Todo list</h2>
<ul ng-controller="TodoCtrl as t">
{{t.todos}}
<li ng-repeat="todo in t.todos">{{ todo.title}}</li>
</ul>
</div>
JavaScript
function TodoCtrl($scope) {
$scope.todos = [
{title: 'Buy a notebook', done: true},
{title: 'Take a bath', done: false},
{title: 'Drink milk', done: false}
];
}