| Age | Commit message (Collapse) | Author |
|
Duplicate 'that' words present in the document, just remove one of them.
Closes #6469
|
|
These errors in the docs were preventing some parts of the docs from being
parsed.
|
|
|
|
|
|
Even though it is defined in the auto folder, it makes more sense for this
function to appear in the ng module in the docs.
|
|
|
|
|
|
$provide misused into $provider
maybe this should be corrected I think
Closes #6146
|
|
Updating $provide.service method docs
The previous example provided for the service method did not work. I've updated the example to a working example.
I think this version of the example will probably make more sense to most people, and the factory method would be
a better place for this sort of example.
Closes #6008
|
|
Indentation made Markdown parser think that it’s a block of code.
Closes #5446
|
|
|
|
getService flags services as INSTANTIATING while it calls their
provider factory, in order to detect circular dependencies. If
the service is instantiated correctly, the INSTANTIATING flag is
overwritten with the actual service. However, if the service is
not instantiated correctly, the INSTANTIATING flag should still
be removed, or all further requests for this service will be
mis-detected as a circular dependency.
Closes #4361
Closes #5577
|
|
This convention is exhibited by http://coffeescript.org/ and https://github.com/polarmobile/coffeescript-style-guide#functions.
Closes #5354
|
|
|
|
Closes #5388
|
|
Closes #5188
|
|
Closes #5104
|
|
The example code for `$provide.value()` actually used `$provide.constant()`.
It now uses `$provide.value()`.
Closes #4983
Closes #4990
|
|
|
|
Closes #4420
|
|
|
|
This also contains some whitespace corrections by my editor.
|
|
This change makes `$injector.instantiate` (and thus `$provide.service`) to behave the same as native
`new` operator.
|
|
Improve the "tracking" service example by adding a configuration option.
Get better formatting of the generated code samples using <pre> tags.
Move the detailed explanations into each function's documentation block.
Improve the overview and list the constituent functions by significance.
Closes #4302
|
|
$provide's example seems awkward. Replace with more real-world example,
using an injected service, where the service defined has a good reason to
be a singleton.
There's quite a lot of confusion around $provide:
http://stackoverflow.com/search?q=angularjs+service+vs+factory
Tests for example at: http://jsbin.com/EMabAv/1/edit?js,output
|
|
Objects received from outside AngularJS may have had their `hasOwnProperty`
method overridden with something else. In cases where we can do this without
incurring a performance penalty we call directly on Object.prototype.hasOwnProperty
to ensure that we use the correct method.
Also, we have some internal hash objects, where the keys for the map are provided
from outside AngularJS. In such cases we either prevent `hasOwnProperty` from
being used as a key or provide some other way of preventing our objects from
having their `hasOwnProperty` overridden.
BREAKING CHANGE: Inputs with name equal to "hasOwnProperty" are not allowed inside
form or ngForm directives.
Before, inputs whose name was "hasOwnProperty" were quietly ignored and not added
to the scope. Now a badname exception is thrown.
Using "hasOwnProperty" for an input name would be very unusual and bad practice.
Either do not include such an input in a `form` or `ngForm` directive or change
the name of the input.
Closes #3331
|
|
|
|
When annotating a fn, it is wasteful to try to parse a fn that has no arguments
as such fn has no injectable dependencies
|
|
|
|
|
|
|
|
- add toThrowNg matcher
|
|
|
|
Closes #2556
|
|
Closes: #2551
|
|
|
|
|
|
The actual invoke call in the documentation was referring to the non-existent tempFn instead of tmpFn
|
|
|
|
$inject was used where $injector was appropriate; confusing and
misleading.
|
|
|
|
Section heading about `$inject` property refers to it as `$injector` property.
|
|
getService fn takes only one argument, removing the second one.
Closes #1711
|
|
`injector.instantiate` is now called for arrays too, instead of only for functions.
Closes #1452
|
|
|
|
|
|
Better than special-casing '$injector' in createInjector.
|
|
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
|
|
|
|
|