JSFiddle - React, Tailwind, and code Playground
HTML
<div class="container" ng-app="IB">
<div data-ng-view=""></div>
</div>
JavaScript
var IB = angular.module('IB', []);
//channel controller
IB.controller('channelsController', function ($scope, $routeParams) {
$scope.greet = function () {
alert('hi');
};
});
IB.config(function ($routeProvider) {
$routeProvider
.when('/channels', {
controller: 'channelsController',
template: '{{greet()}}'
})
.otherwise({ redirectTo: '/channels' });
});