-
Notifications
You must be signed in to change notification settings - Fork 1
/
app.js
32 lines (25 loc) · 947 Bytes
/
app.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
/**
@toc
1. setup - whitelist, appPath, html5Mode
*/
'use strict';
angular.module('myApp', [
'ngRoute', 'ngSanitize', 'ngTouch', //additional angular modules
'jayeshgangadharan.angular-mobile-notification'
]).
config(['$routeProvider', '$locationProvider', '$compileProvider', function($routeProvider, $locationProvider, $compileProvider) {
/**
setup - whitelist, appPath, html5Mode
@toc 1.
*/
$locationProvider.html5Mode(false); //can't use this with github pages / if don't have access to the server
// var staticPath ='/';
var staticPath;
// staticPath ='/angular-services/angular-mobile-notification/'; //local
staticPath ='/'; //nodejs (local)
// staticPath ='/angular-mobile-notification/'; //gh-pages
var appPathRoute ='/';
var pagesPath =staticPath+'pages/';
$routeProvider.when(appPathRoute+'home', {templateUrl: pagesPath+'home/home.html'});
$routeProvider.otherwise({redirectTo: appPathRoute+'home'});
}]);