JSFiddle - React, Tailwind, and code Playground
HTML
<body ng-app="appBackOffice">
<header id="header">
<div class="container">
<div class="row">
<h1 class="logoSpTrans col-md-4"><a href="" class="logo-link">SPTrans</a></h1>
<h2 class="mainTitle col-md-4">SISTEMA DE BACKOFFICE - SPTRANS</h2>
<h1 class="logoBilhete col-md-4">Bihete Ăšnico</h1>
</div>
</div>
</header>
<div class="container theme-showcase">
<div class="jumbotron">
<h1>{{a}}</h1>
<p>This is a template showcasing the optional theme stylesheet included in Bootstrap. Use it as a starting point to create something more unique by building on or modifying it.</p>
</div>
<div ng-view> </div>
</div>
</div>
<script src="angular/js/angular.js"></script>
<script src="angular/js/angular-route.js"></script>
<script src="angular/js/ui-bootstrap-tpls-1.3.0.js"></script>
<script src="angular/js/angular-touch.js"></script>
<script src="angular/js/angular-animate.min.js"></script>
<script src="angular/js/angular-sanitize.js"></script>
<script src="angular/js/angular-resource.js"></script>
<script src="angular/js/angular-locale_pt-br.js"></script>
<script src="angular/app/appBackOffice.js"></script>
</body>
JavaScript
"use strict";
var appBackOffice = angular.module('appBackOffice',["ngRoute","ngAnimate","ngSanitize"]);
//$controllerProvider
appBackOffice.config(['$filterProvider', '$controllerProvider','$routeProvider', function($filterProvider, $controllerProvider,$routeProvider){
appBackOffice.registerCtrl = $controllerProvider.register;
appBackOffice.resolveScriptDeps = function(dependencies){
return function($q,$rootScope){
var deferred = $q.defer();
$script(dependencies, function() {
$rootScope.$apply(function(){
deferred.resolve();
});
});
return deferred.promise;
}
};
$routeProvider
.when('/', {
redirectTo: '/home'
})
.when('/:page', {
templateUrl: function($routeParams) {
return 'views/'+ $routeParams.page +'.html';
},
resolve: function($routeParams) {
return {deps: appBackOffice.resolveScriptDeps(['angular/controllers/controller.'+$routeParams.page+'.js'])};
},
controller: 'Home'
}).otherwise({
redirectTo: '/home'
});
}]);