-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathapp.js
More file actions
50 lines (46 loc) · 1.23 KB
/
app.js
File metadata and controls
50 lines (46 loc) · 1.23 KB
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
41
42
43
44
45
46
47
48
49
define([
'angular',
'ngAnimate',
'uiRouter',
'jsCommon/configs/config',
'autoValidate',
'components',
'dialog',
'plupload',
'qiniu',
'placeholders',
'ui'
],function(
angular,
ngAnimate,
uiRouter,
config,
autoValidate,
components,
ui
){
'use strict';
var appName ="investment",
investmentApp = angular.module(appName, [
'ui.router',
'components',
'jcs-autoValidate',
'ui'
]);
config(investmentApp);
investmentApp.run(['$rootScope', '$state', '$stateParams', '$compile', 'G','$location',function($rootScope, $state, $stateParams, $compile,G,$location) {
$rootScope.$state = $state;
$rootScope.$stateParams = $stateParams;
$rootScope.user = {name:"",password:"",info:"27",account:"东方不败",user:"陈乔恩",cardbind:false};
// $rootScope.user = {name:"admin",password:"admin"};
// G.init(user, $rootScope, $compile);
}]).config([ '$stateProvider', '$urlRouterProvider', function ($stateProvider, $urlRouterProvider){
$urlRouterProvider
.otherwise('/home');
}])
return {
start: function(ngAppELem){
angular.bootstrap(ngAppELem||document, [appName]);
}
}
})