Cleanup and formatting.
This commit is contained in:
parent
1ec6383287
commit
add4871527
@ -16,7 +16,6 @@
|
||||
*/
|
||||
// vim: set tw=80 ts=2 sw=2 sts=2:
|
||||
|
||||
// The AccountController.
|
||||
accountantApp
|
||||
|
||||
.factory("Account", ["$resource", function($resource) {
|
||||
@ -64,7 +63,7 @@ accountantApp
|
||||
};
|
||||
|
||||
/*
|
||||
* Add an empty account if not already added.
|
||||
* Add an empty account.
|
||||
*/
|
||||
$scope.add = function() {
|
||||
var account = new Account({
|
||||
|
@ -23,6 +23,7 @@ var accountantApp = angular.module("accountantApp", [
|
||||
])
|
||||
|
||||
.config(function($httpProvider, $routeProvider, $locationProvider) {
|
||||
// Define interceptors.
|
||||
$httpProvider.interceptors.push(function($q, notificationService) {
|
||||
return {
|
||||
"response": function(response) {
|
||||
@ -41,6 +42,7 @@ var accountantApp = angular.module("accountantApp", [
|
||||
};
|
||||
});
|
||||
|
||||
// Defining template and controller in function of route.
|
||||
$routeProvider.when('/account/:accountId/operations', {
|
||||
templateUrl: 'static/templates/operations.html',
|
||||
controller: 'OperationController'
|
||||
@ -54,6 +56,7 @@ var accountantApp = angular.module("accountantApp", [
|
||||
redirectTo: 'accounts'
|
||||
});
|
||||
|
||||
// Enable HTML5 mode.
|
||||
$locationProvider.html5Mode(true);
|
||||
})
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user