📜  EmberJS-应用程序问题

📅  最后修改于: 2020-10-25 11:03:01             🧑  作者: Mango


可以使用Ember.Application类扩展Ember应用程序,该类声明和配置有助于构建应用程序的对象。

应用程序在运行时会创建Ember.ApplicationInstance类,该类用于管理其方面,并且充当实例化对象的所有者。简而言之, Ember.Application类定义应用程序,而Ember.ApplicationInstance类管理其状态。

下表列出了有关模型的更多详细信息-

S.No. Model Ways & Description
1 Dependency Injection

It is a process of supplying dependencies of one object to another and used by an Ember application to declare and instantiates the objects and dependencies classes between them.

2 Initializers

Initializers are used to configure an application as it boots.

3 Services

Service is an Ember object which can be made available in the different parts of the application.

4 The Run Loop

It is a region where most of the application’s internal code takes place.