(function () { var RoutingModule = angular.module('Routing', []); RoutingModule.config(function ($stateProvider, $urlRouterProvider) { $urlRouterProvider.otherwise("/"); $stateProvider .state('disclaimer', { url: "/", templateUrl: "templates/disclaimer.html" }) .state('login', { url: "/login", templateUrl: "templates/login.html" }) .state('mwl', { url: "/mwl", templateUrl: "templates/mwl.html", reloadOnSearch: false }) }); })();