mirror of
https://github.com/nasa/openmct.git
synced 2025-01-30 16:13:53 +00:00
[API] Move angular dependency inward
This commit is contained in:
parent
76aa9e1fd2
commit
65fb5ab2a5
8
main.js
8
main.js
@ -39,10 +39,8 @@ requirejs.config({
|
|||||||
|
|
||||||
define([
|
define([
|
||||||
'./platform/framework/src/Main',
|
'./platform/framework/src/Main',
|
||||||
'legacyRegistry',
|
'legacyRegistry'
|
||||||
"angular",
|
], function (Main, legacyRegistry) {
|
||||||
"angular-route"
|
|
||||||
], function (Main, legacyRegistry, angular) {
|
|
||||||
'use strict';
|
'use strict';
|
||||||
new Main(angular).run(legacyRegistry);
|
new Main().run(legacyRegistry);
|
||||||
});
|
});
|
@ -41,24 +41,25 @@ define(
|
|||||||
[
|
[
|
||||||
'require',
|
'require',
|
||||||
'../lib/es6-promise-2.0.0.min',
|
'../lib/es6-promise-2.0.0.min',
|
||||||
'./FrameworkLayer'
|
'./FrameworkLayer',
|
||||||
|
'angular',
|
||||||
|
'angular-route'
|
||||||
],
|
],
|
||||||
function (
|
function (
|
||||||
require,
|
require,
|
||||||
es6promise,
|
es6promise,
|
||||||
FrameworkLayer
|
FrameworkLayer,
|
||||||
|
angular
|
||||||
) {
|
) {
|
||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
function Main(angular) {
|
function Main() {
|
||||||
this.angular = angular;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
Main.prototype.run = function () {
|
Main.prototype.run = function () {
|
||||||
// Get a reference to Angular's injector, so we can get $http and $log
|
// Get a reference to Angular's injector, so we can get $http and $log
|
||||||
// services, which are useful to the framework layer.
|
// services, which are useful to the framework layer.
|
||||||
var angular = this.angular,
|
var injector = angular.injector(['ng']);
|
||||||
injector = angular.injector(['ng']);
|
|
||||||
|
|
||||||
// Look up log level from query string
|
// Look up log level from query string
|
||||||
function logLevel() {
|
function logLevel() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user