You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

56 lines
1.6 KiB

import angular from 'angular';
import ngRoute from 'angular-route';
import UserService from './shared.service';
angular.module('NomitWisp',
[
'NomitWisp-Login',
'NomitWisp-Topbar',
'NomitWisp-Sidebar',
'NomitWisp-Footer',
'nwDashboard',
'nwLogout',
'nwAds',
'nwAdsDetails',
ngRoute
])
.factory(UserService.name, UserService)
.config(function ($routeProvider) {
$routeProvider
.when('/', {
controller: 'DashboardController',
templateUrl: 'assets/scripts/dashboard/dashboard.html'
})
.when('/ads', {
controller: 'AdsController',
templateUrl: 'assets/scripts/ads/ads.html'
})
.when('/ads/:id',{
controller: 'AdsDetailsController',
templateUrl: 'assets/scripts/ads-details/ads-details.html'
})
// .when('/profile', {
// controller: 'ProfileController',
// templateUrl: ''
// })
// .when('/users', {
// controller: 'UsersController',
// templateUrl: ''
// })
// .when('/companies', {
// controller: 'CompaniesController',
// templateUrl: ''
// })
// .when('/referees', {
// controller: 'RefereesController',
// templateUrl: ''
// })
// .when('/reports', {
// controller: 'ReportsController',
// templateUrl: ''
// })
.otherwise({
redirectTo: '/'
});
});