I came across a helpful example on stackoverflow demonstrating how to create Tabs using AngularJS and Bootstrap. However, I encountered an issue. The original code is based on an outdated Angular library (1.0.4) and when I attempt to switch to the current version (1.4.7), the script fails to function properly.
You can view the original code on Plunker
Here is the original post
Here are the steps I have taken so far to make changes:
var app = angular.module('plunker', ['ngRoute']);
app.config(function($routeProvider, $locationProvider) {
$routeProvider
.when('/jobs', {
templateUrl: 'jobs-partial.html',
controller: JobsCtrl
})
.when('/invoices', {
templateUrl: 'invoices-partial.html',
controller: InvoicesCtrl
})
.when('/payments', {
templateUrl: 'payments-partial.html',
controller: PaymentsCtrl
})
.otherwise({
redirectTo: '/jobs'
});
});
What could be causing this problem?