Arlen Christian Mart Cuss
d1b49e25f1
docs($injector): correct misuse of $inject
...
$inject was used where $injector was appropriate; confusing and
misleading.
2013-03-12 13:00:03 -07:00
Jason Morrison
a248d5a32d
docs($injector): remove extranneous 'the' from injector docs
2013-03-08 23:44:44 +01:00
Vineet Kumar
d2177ae312
docs($injector): clarify $inject property description
...
Section heading about `$inject` property refers to it as `$injector` property.
2013-01-24 00:15:32 -05:00
Igor Minar
b6b7c5a1d6
fix($injector): remove bogus fn arg
...
getService fn takes only one argument, removing the second one.
Closes #1711
2013-01-08 14:36:03 -08:00
Sudhir Jonathan
2c405f4171
fix($injector): provider can now be defined in the array format
...
`injector.instantiate` is now called for arrays too, instead of only for functions.
Closes #1452
2012-12-01 18:41:59 +01:00
sqwishy trick
271d2bed3a
chore(injector): fix typo in injector documentation
2012-10-31 14:19:05 -07:00
Misko Hevery
d9eff86ef7
fix($injector): more conservative annotation parsing
2012-09-06 16:06:24 -07:00
JP Sugarbroad
e3e8813e3c
refactor($injector): move $injector into the providerCache
...
Better than special-casing '$injector' in createInjector.
2012-07-19 21:56:22 -07:00
Igor Minar
f16150d5f1
docs(*): simplify doc urls
...
we now have two types of namespaces:
- true namespace: angular.* - used for all global apis
- virtual namespace: ng.*, ngMock.*, ... - used for all DI modules
the virual namespaces have services under the second namespace level (e.g. ng.)
and filters and directives prefixed with filter: and directive: respectively
(e.g. ng.filter:orderBy, ng.directive:ngRepeat)
this simplifies urls and makes them a lot shorter while still avoiding name collisions
2012-06-12 00:10:18 -07:00
Misko Hevery
2e90cdc3d4
docs(dependency injecton): rewrite
2012-06-02 16:02:05 -07:00
Misko Hevery
4361efb03b
feat($injector): provide API for retrieving function annotations
2012-06-01 10:57:51 -07:00
Misko Hevery
bbaf9a2870
fix(docs): accept return in addition to returns
...
documentation used @return but parser expected
@returns, which made the generated documentation
incomplete.
2012-05-24 13:48:42 -07:00
Igor Minar
2cb907a836
fix($injector): properly infer dependencies from fn with no args
...
Previously if there was a white-space in fn: fn( ) {} we failed to infer no args.
This was originally reported by recht, but I decided to use a different fix.
Closes #829
2012-03-29 11:21:04 -07:00
Misko Hevery
2430f52bb9
chore(module): move files around in preparation for more modules
2012-03-28 11:16:35 -07:00