Skip to content

RC1.0 Dependency Injection

Brock McKean edited this page Jun 29, 2015 · 4 revisions

###Event Publish and Subscribe An inititial publish and subscribe method for package communication has been created. You can see reference use of it in the articles package - https://github.com/linnovate/mean/blob/master/packages/core/articles/server/controllers/articles.js#L38

###Service Inject Services that are meant to be properly aggregated and overridden later must be injected.

Mean.inject(serviceObj);

Accessing an aggregated Service can be done through simply accessing MyPkg.fn(); or MyPkg.var;

Clone this wiki locally