lib/susanoo/templates/application/src/assets/javascripts/app.js in susanoo-0.13.0 vs lib/susanoo/templates/application/src/assets/javascripts/app.js in susanoo-0.13.1
- old
+ new
@@ -1,17 +1,19 @@
// Main Application Module
// -----------------------
// This module is the start point of application.
-var App = angular.module("Application", ["ngTouch", "ngAnimate", "ngRoute", "gettext", "angular-gestures"]);
+var App = angular.module("Application", ["ngAnimate", "gettext", "ui.router"]);
// configuration section ---------------------------
-App.config(["$routeProvider", function($routeProvider){
+App.config(["$stateProvider", "$urlRouterProvider", function($stateProvider, $urlRouterProvider){
+ $urlRouterProvider.otherwise("/");
// Configuring application index route.
// Add any route you need here.
- $routeProvider.
- when("/", {
- templateUrl: template("main"),
+ $stateProvider.
+ state("root", {
+ url: "/",
+ templateUrl: template_url("main"),
controller: "MainController"
});
}]);