mirror of
https://github.com/d0zingcat/gocryptotrader.git
synced 2026-05-16 15:09:57 +00:00
Separates bot configuration to its own method to allow for repeat use. Also main.go should be small Now reloads bot configuration on the save post. Active changes!
27 lines
706 B
JavaScript
27 lines
706 B
JavaScript
'use strict';
|
|
|
|
// Declare app level module which depends on views, and components
|
|
angular.module('myApp', [
|
|
'ngRoute',
|
|
'ui-notification',
|
|
'myApp.home',
|
|
'myApp.about',
|
|
'myApp.settings',
|
|
'myApp.version'
|
|
]).
|
|
config(['$locationProvider', '$routeProvider' ,'NotificationProvider', function($locationProvider, $routeProvider, NotificationProvider) {
|
|
NotificationProvider.setOptions({
|
|
delay: 5000,
|
|
startTop: 60,
|
|
startRight: 10,
|
|
verticalSpacing: 10,
|
|
horizontalSpacing: 20,
|
|
positionX: 'right',
|
|
positionY: 'top'
|
|
});
|
|
|
|
$locationProvider.hashPrefix('!');
|
|
|
|
$routeProvider.otherwise({redirectTo: '/'});
|
|
}]);
|