Tab Activation
How to avoid "undefined is not a function" error while using active on a tab
by Shanna Barnard
HTML
<script src="http://angular-ui.github.io/bootstrap/ui-bootstrap-tpls-0.4.0.js"></script>
<link rel="stylesheet" href="//netdna.bootstrapcdn.com/bootstrap/3.1.1/css/bootstrap.min.css">
<script src="http://angular-ui.github.io/ui-router/release/angular-ui-router.min.js"></script>
<div ng-controller="tabActivationController">
</div>
JavaScript
var tabApplication = angular.module('tabApplication', ['ui.router', 'ui.bootstrap']);
tabApplication.controller('tabActivationController', function ($scope, $state) {
$scope.$state = $state;
});