JSFiddle - React, Tailwind, and code Playground
by Alexey Ryazhskikh
HTML
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.4.9/angular.min.js"></script>
<div ng-controller="myCtrl as myCtrl">
{{myCtrl.title}}
</div>
JavaScript
(function () {
'use strict';
var app = angular.module('app', ['ui.router']);
angular
.module('app')
.controller('myCtrl', myCtrl);
myCtrl.$inject = ['$location'];
function myCtrl($location) {
/* jshint validthis:true */
var vm = this;
vm.title = 'controller1';
activate();
function activate() { }
}
})();