-
Notifications
You must be signed in to change notification settings - Fork 3
/
app.js
40 lines (34 loc) · 1.1 KB
/
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
33
34
35
36
37
38
39
40
/**
* @ngdoc interface
* @name generic.table.dev
* @module generic.table.dev
* @description
*
* # generic-table-dev (core module)
* The generic-table module is loaded by default.
*/
angular.module('generic.table.dev', ['ui.router','ngAnimate','ngResource','angular.filter','angular.bind.notifier','ngSanitize', 'ngCsv','angular.generic.table']);
angular.module('generic.table.dev').config(function($stateProvider, $urlRouterProvider) {
$stateProvider.state('examples', {
url: '/examples',
templateUrl: 'partial/examples/examples.html'
});
$stateProvider.state('dev', {
url: '/dev',
templateUrl: 'partial/dev/dev.html'
});
/* Add New States Above */
$urlRouterProvider.otherwise('/examples');
});
angular.module('generic.table.dev').run(function($rootScope) {
$rootScope.safeApply = function(fn) {
var phase = $rootScope.$$phase;
if (phase === '$apply' || phase === '$digest') {
if (fn && (typeof(fn) === 'function')) {
fn();
}
} else {
this.$apply(fn);
}
};
});