angular/di.js
{ "createdAt": "2014-01-14T00:58:53Z", "defaultBranch": "master", "description": "Dependency Injection Framework for the future generations...", "fullName": "angular/di.js", "homepage": null, "language": "JavaScript", "name": "di.js", "pushedAt": "2015-07-16T07:20:14Z", "stargazersCount": 813, "topics": [], "updatedAt": "2025-11-06T22:26:16Z", "url": "https://github.com/angular/di.js"}Dependency Injection v2
Section titled “Dependency Injection v2”This readme describes how to set up your working space in order to run the tests and hack on it. See [How can I use it]!(./docs/how-can-i-use-it.md) on how to use this DI framework in your project.
Installation
Section titled “Installation”# Clone this repo (or your fork).git clone https://github.com/angular/di.js.git
# Install all the the dev dependencies, such as Karma, Gulp, etc.npm install
# If you wanna use "karma" or "gulp" commands, install also:npm install -g karma-clinpm install -g gulpRunning the [tests]!(./test/)
Section titled “Running the [tests]!(./test/)”This will start Karma and Chrome (with --harmony enabled). Karma will watch the source code and run the tests anytime you save a change.
karma startTranspiling ES6
Section titled “Transpiling ES6”All the source code is written in the upcoming version of JavaScript - ES6. In order to use it in the current browsers you need to transpile the code into ES5 using [Traceur].
# Transpile ES6 into ./compiled/*gulp build
# Watch all the sources and transpile on any changegulp watchExamples
Section titled “Examples”gulp build_examplesgulp serveMore stuff
Section titled “More stuff”I talked about this DI framework at the [ng-conf], here are some more links…
Also, here is the original design doc, which is quickly becoming out-dated ;-)
[Traceur] !: https://github.com/google/traceur-compiler [ng-conf] !: http://ng-conf.org/
