From 430404614d2bea20fd0fa5c3d27277f31751e403 Mon Sep 17 00:00:00 2001 From: Shaoquan Chen Date: Tue, 12 Jan 2016 00:26:24 -0800 Subject: [PATCH 1/2] Adding basic modules - app.view - app.model - app.api - app.event --- src/app/api/api.module.js | 7 +++++++ src/app/app.directive.js | 16 ---------------- src/app/app.module.js | 7 ++++++- src/app/event/event.module.js | 7 +++++++ src/app/model/model.module.js | 7 +++++++ src/app/view/view.module.js | 7 +++++++ src/index.html | 2 +- 7 files changed, 35 insertions(+), 18 deletions(-) create mode 100644 src/app/api/api.module.js delete mode 100644 src/app/app.directive.js create mode 100644 src/app/event/event.module.js create mode 100644 src/app/model/model.module.js create mode 100644 src/app/view/view.module.js diff --git a/src/app/api/api.module.js b/src/app/api/api.module.js new file mode 100644 index 0000000000..e7f5d50bd9 --- /dev/null +++ b/src/app/api/api.module.js @@ -0,0 +1,7 @@ +(function () { + 'use strict'; + + angular + .module('app.api', []); + +})(); diff --git a/src/app/app.directive.js b/src/app/app.directive.js deleted file mode 100644 index 52ce7f6c41..0000000000 --- a/src/app/app.directive.js +++ /dev/null @@ -1,16 +0,0 @@ -(function () { - 'use strict'; - - angular - .module('app') - .directive('app', app); - - app.$inject = ['app.basePath']; - - function app(basePath) { - return { - templateUrl: basePath + 'app.html' - }; - } - -})(); diff --git a/src/app/app.module.js b/src/app/app.module.js index 2f73fab126..a5b66a166f 100644 --- a/src/app/app.module.js +++ b/src/app/app.module.js @@ -2,7 +2,12 @@ 'use strict'; angular - .module('app', []) + .module('app', [ + 'app.api', + 'app.event', + 'app.model', + 'app.view' + ]) .constant('app.basePath', 'app/'); })(); diff --git a/src/app/event/event.module.js b/src/app/event/event.module.js new file mode 100644 index 0000000000..9b690a90fc --- /dev/null +++ b/src/app/event/event.module.js @@ -0,0 +1,7 @@ +(function () { + 'use strict'; + + angular + .module('app.event', []); + +})(); diff --git a/src/app/model/model.module.js b/src/app/model/model.module.js new file mode 100644 index 0000000000..4223c98f10 --- /dev/null +++ b/src/app/model/model.module.js @@ -0,0 +1,7 @@ +(function () { + 'use strict'; + + angular + .module('app.model', []); + +})(); diff --git a/src/app/view/view.module.js b/src/app/view/view.module.js new file mode 100644 index 0000000000..1f2112ba98 --- /dev/null +++ b/src/app/view/view.module.js @@ -0,0 +1,7 @@ +(function () { + 'use strict'; + + angular + .module('app.view', []); + +})(); diff --git a/src/index.html b/src/index.html index 2cb40b1f6b..13989c2ea0 100644 --- a/src/index.html +++ b/src/index.html @@ -9,6 +9,6 @@ - + From a48d519ed385f657bf8f75caef7919684bfc66b5 Mon Sep 17 00:00:00 2001 From: Shaoquan Chen Date: Tue, 12 Jan 2016 00:26:24 -0800 Subject: [PATCH 2/2] Adding basic modules - app.view - app.model - app.api - app.event --- src/app/api/api.module.js | 7 +++++++ src/app/app.directive.js | 16 ---------------- src/app/app.module.js | 7 ++++++- src/app/event/event.module.js | 7 +++++++ src/app/model/model.module.js | 7 +++++++ src/app/view/view.module.js | 7 +++++++ src/index.html | 2 +- 7 files changed, 35 insertions(+), 18 deletions(-) create mode 100644 src/app/api/api.module.js delete mode 100644 src/app/app.directive.js create mode 100644 src/app/event/event.module.js create mode 100644 src/app/model/model.module.js create mode 100644 src/app/view/view.module.js diff --git a/src/app/api/api.module.js b/src/app/api/api.module.js new file mode 100644 index 0000000000..e7f5d50bd9 --- /dev/null +++ b/src/app/api/api.module.js @@ -0,0 +1,7 @@ +(function () { + 'use strict'; + + angular + .module('app.api', []); + +})(); diff --git a/src/app/app.directive.js b/src/app/app.directive.js deleted file mode 100644 index 52ce7f6c41..0000000000 --- a/src/app/app.directive.js +++ /dev/null @@ -1,16 +0,0 @@ -(function () { - 'use strict'; - - angular - .module('app') - .directive('app', app); - - app.$inject = ['app.basePath']; - - function app(basePath) { - return { - templateUrl: basePath + 'app.html' - }; - } - -})(); diff --git a/src/app/app.module.js b/src/app/app.module.js index 2f73fab126..a5b66a166f 100644 --- a/src/app/app.module.js +++ b/src/app/app.module.js @@ -2,7 +2,12 @@ 'use strict'; angular - .module('app', []) + .module('app', [ + 'app.api', + 'app.event', + 'app.model', + 'app.view' + ]) .constant('app.basePath', 'app/'); })(); diff --git a/src/app/event/event.module.js b/src/app/event/event.module.js new file mode 100644 index 0000000000..9b690a90fc --- /dev/null +++ b/src/app/event/event.module.js @@ -0,0 +1,7 @@ +(function () { + 'use strict'; + + angular + .module('app.event', []); + +})(); diff --git a/src/app/model/model.module.js b/src/app/model/model.module.js new file mode 100644 index 0000000000..4223c98f10 --- /dev/null +++ b/src/app/model/model.module.js @@ -0,0 +1,7 @@ +(function () { + 'use strict'; + + angular + .module('app.model', []); + +})(); diff --git a/src/app/view/view.module.js b/src/app/view/view.module.js new file mode 100644 index 0000000000..1f2112ba98 --- /dev/null +++ b/src/app/view/view.module.js @@ -0,0 +1,7 @@ +(function () { + 'use strict'; + + angular + .module('app.view', []); + +})(); diff --git a/src/index.html b/src/index.html index 2cb40b1f6b..956175408d 100644 --- a/src/index.html +++ b/src/index.html @@ -9,6 +9,6 @@ - +