aboutsummaryrefslogtreecommitdiffstats
path: root/src/Injector.js
AgeCommit message (Collapse)Author
2012-03-28chore(module): move files around in preparation for more modulesMisko Hevery
2012-03-16feat(injector): infer _foo_ as fooIgor Minar
this is to enable nicer tests: describe('fooSvc', function() { var fooSvc; beforeEach(inject(function(_fooSvc_) { fooSvc = _fooSvc_; })); it('should do this thing', function() { //test fooSvc }); });
2012-03-09feat($provide.service): Add $provide.service() for registering a classVojta Jina
2012-03-09refactor($provide) Rename service -> providerVojta Jina
It registers a provider class, so this makes more sense. Breaks Rename $provide.service -> $provide.provider
2012-02-29docs($injector): Correct provider suffix to "Provider"Marcello Nuccio
2012-02-22feat($provide): added constant Misko Hevery
2012-02-22fix($injector): circular dependency instatiationMisko Hevery
2012-02-21docs(decorator): add missing decorate docsMisko Hevery
2012-02-16fix(injector) .instantiate([Type]) produced wrong resultMisko Hevery
2012-02-08fix($injector): instantiate returns instance, if non-object value returned ↵Vojta Jina
from constructor
2012-01-25refactor(directives): connect new compilerMisko Hevery
- turn everything into a directive
2012-01-25fix(injector): small perf improvement & code cleanupIgor Minar
2012-01-17docs(*): various doc fixesIgor Minar
2012-01-13feat(module): add runtime blockMisko Hevery
2012-01-12refactor(module): strict separation between module-config / app-runtimeMisko Hevery
2012-01-10feat(module): new module loaderMisko Hevery
2011-12-07feat(injector): add $provide.decoratorIgor Minar
2011-11-14refactor(injector): removed loadModule/ng:moduleMisko Hevery
- added module property to doc:example
2011-11-14refactor(injector): $injector is no longer a function.Misko Hevery
- $injector('abc') -> $injector.get('abc'); - $injector(fn) -> $injector.invoke(null, fn);
2011-11-14del($eager): removed the support for $eager servicesMisko Hevery
2011-11-14style(docs): make jslint happy - fix some warningsVojta Jina
2011-11-14doc(AUTO, NG_MOCK): Documenting the AUTO and NG_MOCK moduleMisko Hevery
2011-11-14new(directive): added ng:module directive for loading modulesMisko Hevery
2011-11-14refactor(angular): isDate / isArray test iframe independent fixMisko Hevery
2011-11-14refactor(services): migrate angular.service -> moduleMisko Hevery
2011-11-14refactor(injector): switch to injector 2.0 introduce modulesMisko Hevery
2011-11-14new(injector): new injector v2.0Misko Hevery
- not connected to keep the CL small
2011-11-14feat(injector): support $inject(fn($service){}) function invocationMisko Hevery
2011-11-14feat(injector): support ['$service', function($service){}] annotations for ↵Misko Hevery
function invocation.
2011-11-14feat(injector): Service look up failures include dependency pathMisko Hevery
2011-11-14refactor(injector): turn scope into a serviceMisko Hevery
- turn scope into a $rootScope service. - injector is now a starting point for creating angular application. - added inject() method which wraps jasmine its/beforeEach/afterEach, and which allows configuration and injection of services. - refactor tests to use inject() where possible BREAK: - removed angular.scope() method
2011-10-11chore(formating): clean code to be function() {Misko Hevery
2011-10-11refactor(injection) infer injection args in ng:controller onlyMisko Hevery
Because only controllers don't have currying, we can infer its arguments, all other APIs needing currying, automatic inference complicates the matters unecessary.
2011-09-01docs(API): various api doc fixes from ToniIgor Minar
2011-07-18feat(strict mode): adding strict mode flag to all js filesIgor Minar
the flag must be in all src and test files so that we get the benefit of running in the strict mode even in jstd the following script was used to modify all files: for file in `find src test -name "*.js"`; do echo -e "'use strict';\n" > temp.txt cat $file >> temp.txt mv temp.txt $file done
2011-07-18doc(angular.annotate): properly disable doc snippet to avoid compiler warningsIgor Minar
2011-07-18style(injector): remove extra semicolonIgor Minar
2011-07-16fix(doc): fix all broken linksIgor Minar
2011-07-06fix:injector: make injector compatible with Rhino (HtmlUnit)Mårten Dolk
2011-06-08Refactor injector to have invoke method for speed reasonsMisko Hevery
2011-06-06yet another docs batchIgor Minar
2011-06-06Fix wrong links in source codeVojta Jina
2011-03-28fixing lint warningsIgor Minar
2011-02-27adding an extra injector specIgor Minar
- added a spec for dependency graph resolution - also simplyfying cache presence check
2011-02-18replace smart-quotes with regular quotesMisko Hevery
2011-02-18Auto create $inject property form the argument names. Any arg starting with ↵Misko Hevery
$ or _ will be injected
2011-02-15split up services into individual filesIgor Minar
- split up services into files under src/service - split up specs into files under test/service - rewrite all specs so that they don't depend on one global forEach - get rid of obsolete code and tests in ng:switch - rename mock $log spec from "$log" to "$log mock"
2011-01-24fixed example rendering, add tests for it.Misko Hevery
2011-01-10Rename angular.foreach to angular.forEach to make the api consistent.Igor Minar
camelcase is used for other angular functions and forEach is also used by EcmaScript standard. - rename the internal as well as the external function name - tweak the implementation of the function so that it doesn't clober it self when we extend the angular object with an object that has a forEach property equal to this forEach function Closes #85
2011-01-07change to keydown from keyup; add delayed $updateViewMisko Hevery
- There was a perceived lag when typing do to the fact that we were listening on the keyup event instead of keydown. The issue with keydown is that we can not read the value of the input field. To solve this we schedule a defer call and perform the model update then. - To prevent calling $eval on root scope too many times as well as to prevent drowning the browser with too many updates we now call the $eval only after 25ms and any additional requests get ignored. The new update service is called $updateView