-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathapp.js
executable file
·34 lines (27 loc) · 877 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
33
34
angular.module('stripeMenu', ['ui.bootstrap','ui.router','ngAnimate']);
angular.module('stripeMenu').config(function($stateProvider, $urlRouterProvider) {
$stateProvider.
state('home', {
url:'/home',
views:{
'@':{
templateUrl: 'partial/menu-header/menu-header.html',
// controller: 'MenuHeaderCtrl as vm'
}
}
});
/* Add New States Above */
$urlRouterProvider.otherwise('/home');
});
angular.module('stripeMenu').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);
}
};
});