V
V
vasIvas2015-09-08 13:25:38
Angular
vasIvas, 2015-09-08 13:25:38

Is it possible to delay application initialization?

Go straight to the code, some-module.js - app.js - index.js -
export const some = angular.module('some , []);

export const app= angular.module(app, []);

import {app} from 'app';
import {some} from 'some';

// возможно ли сделать так, чтобы здесь
// установить зависимость модулю app?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey, 2015-09-08
@vasIvas

No, all module dependencies must be declared when declaring it.

import some from 'some';
import angular from 'angular';

export default angular.module('app', [
    some.name
]);

But you can defer initialization, angular.bootstrap

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question