JSFiddle - React, Tailwind, and code Playground
by rajeshpillai
HTML
<!DOCTYPE html>
<html ng-app="TodoApp" xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Amazing Todo</title>
<link href="http://netdna.bootstrapcdn.com/twitter-bootstrap/2.1.1/css/bootstrap.no-icons.min.css" rel="stylesheet">
<link href="http://netdna.bootstrapcdn.com/font-awesome/2.0/css/font-awesome.css" rel="stylesheet">
<script src="http://code.angularjs.org/1.1.1/angular.min.js"></script>
</head>
<body>
<div class="container">
<div ng-view>
Hello {{test}}
</div>
</div>
</body>
</html>
JavaScript
var TodoApp = angular.module("TodoApp", ["ngResource"]).
config(function($routeProvider) {
$routeProvider.
when('/', { controller: ListCtrl, templateUrl: 'list.html' }).
otherwise({ redirectTo: '/' });
});
var ListCtrl = function($scope, $location) {
$scope.test = "testing";
};