569766fa8b
refactor(di): added support for custom dep providers
2015-07-07 08:27:54 -07:00
d1393b0581
fix(di): injecting null causes a cyclic dependency
2015-07-01 17:08:45 -07:00
f0e962c55e
feat(di): removed app injector
...
BREAKING CHANGE:
THe appInjector property has been removed. Instead use viewInjector or hostInjector.
2015-07-01 13:33:43 -07:00
530e742628
refactor(injector): remove unused function
...
Closes #2815
2015-07-01 15:27:23 +02:00
44891996b5
fix(build): add missing return types now enforced by linter
2015-06-29 15:31:41 -07:00
eb0fd7967c
feat(di): changed InstantiationError to print the original stack
2015-06-29 11:16:12 -07:00
22d3943831
refactor(di): unified di injector and core injector
...
BREAKING CHANGES:
* InjectAsync and InjectLazy have been removed
* toAsyncFactory has been removed
2015-06-26 15:59:18 -07:00
dfd30910aa
feat: remove MapWrapper.contains().
2015-06-18 14:55:12 -07:00
be7ac9fd41
feat: remove MapWrapper.create()/get()/set().
...
Better dart2js code, better Angular code.
2015-06-18 14:55:12 -07:00
c7e48350d3
chore: kill ListWrapper.create() and .push().
...
These wrappers are not natively understood by
ts2dart. Removing them will improve Dart2JS
compilation due to fewer megamorphic calls to List
functions.
It also makes Angular code more succinct and
improves type safety in Angular due to better type
inference of the Array component type.
This change exposed several bugs in Angular.
2015-06-17 16:21:55 -07:00
ffd1ac425e
style(DI): idiomatic TS
2015-06-17 11:22:16 +02:00
cdfb635737
refactor(facade): refactor type check function - is*()
2015-06-16 19:27:34 +02:00
c4ecbf0a7f
fix: rename FORWARD_REF to forwardRef in the Angular code base.
...
Now that ts2dart understands forwardRef, there's
no need to maintain the old syntax.
2015-06-12 15:41:08 -07:00
2ccc65d7fd
fix: Improve error message on missing dependency
2015-06-10 16:40:38 -07:00
b746e0c9f0
docs(docgen): tell dgeni to use ts files and fix some bad links
2015-06-02 15:30:03 -07:00
921fb9f2ce
refactor(Injector): use TS iodioms
2015-06-02 09:53:11 +02:00
e93b5a1d5b
refactor(Injector): add an interface for strategies
2015-06-02 09:53:11 +02:00
c571b2693e
feat(OpaqueToken): now a const constructor
...
BREAKING CHANGE:
now a `const` constructor
2015-06-01 16:24:36 -07:00
d523613329
test(di): added a test verifying hierarchical injection
2015-05-29 15:52:46 -07:00
a80921b45d
fix(binding): unbalanced curly brackets in documentation
2015-05-29 17:54:51 +02:00
ec2d8cc2c8
feat(binding): throw on binding to a blank alias
...
fixes #2068
2015-05-28 22:37:29 +02:00
2c25055828
chore: reformat the code base using the clang-format 1.0.15.
2015-05-27 15:28:22 -07:00
df59e969cf
chore(di): moved tests to typescript
2015-05-22 17:32:21 -07:00
15f1eb28a2
fix(deps): Update clang-format to 1.0.14.
2015-05-22 09:39:15 -07:00
fed86fc8ac
feat(injector): support forwardRef in toAlias
2015-05-21 09:52:43 -07:00
705ee46f31
fix(di): changed host and view injector to respect visibility
2015-05-21 09:17:56 -07:00
f210c41c1f
feat(di): changed toFactory to support dependency annotations
2015-05-21 08:34:48 -07:00
e61d82b9be
refactor(core): ts’ify core
2015-05-20 16:30:41 -07:00
8aa3fcfb63
chore(build): don’t include export var __esModule = true
in every file
...
But do it during the build process for cjs.
Right now we only need this when we transpile from ts
directly to es5. This is only the case in our
cis build, as for our browser build we only transpile
from ts to es6 via ts and then use traceur to do
the rest.
2015-05-19 15:12:59 -07:00
8ab773538b
fix(errors): require passing stack traces explicitly in ng2 own code
2015-05-19 12:48:00 -07:00
8b9400ad92
docs(di/injector): remove invalid tab chars
...
These tabs were breaking the jade syntax generation
2015-05-19 14:38:07 +01:00
b066b8d15a
feat(di): added hostInjector and viewInjector to the Directive annotation
2015-05-18 18:30:53 -07:00
b033416a45
doc(DI): fix inline doc in binding.ts
...
fixes #1894
2015-05-18 23:10:41 +02:00
1eea2b254e
feat: allow for forward references in injection
...
It is possible for a class defined first to be referencing a class defined later,
and as a result at the time of the definition it is not possible to access the later's
class reference. This allows to refer to the later defined class through
a closure.Closes #1891
2015-05-15 21:12:57 -07:00
358a6750ed
feat(di): support type literals in DI
2015-05-12 10:57:53 -07:00
a9ce0f7afb
cleanup(di): use typescript initialization idioms
2015-05-11 12:34:22 -07:00
7844e3a275
chore: dartfmt Dart code in the repo
2015-05-11 09:50:33 -07:00
2185e7cee9
feat(di): expose parent injector
2015-05-08 17:11:27 -07:00
42f6baeaec
Fix documentation for toFactory and toAsyncFactory
...
The bound String classes should have a dependency on Number, not String.
Closes #1654
2015-05-08 13:40:12 -07:00
fa28b28d0a
build(typescript): Migrated change detection to typescript
2015-05-07 17:18:04 -07:00
cb87fa0970
chore(build): migrated di to TypeScript
2015-05-06 19:00:56 -07:00
457c15cd6c
feat(decorators): adds decorator versions of DI annotations.
...
In 'angular2/di' the symbol:
- Inject is a decorator
- InjectAnnotation is an annotation
Internally one an get a hold of annotations without *Annotations appened
(to make ts2dart work without workarounds) by importing from
'angular2/src/di/annotations_impl' instead of 'angular2/di'. This is
needed only for users that transpile through TS and through ts2dart.
2015-05-04 13:35:09 -07:00
ee1b574baf
fix(di): improve error messages for invalid bindings
...
Fixes #1515
Closes #1573
2015-04-28 23:42:36 +00:00
7fb2f2069c
docs(Injector): remove unwanted tab characters in the examples
...
These mess up the jade templates that use tabs for structuring the output.
2015-04-28 14:31:35 +01:00
8ccafb0524
feat(view): reimplemented property setters using change detection
2015-04-23 11:55:27 -07:00
d74dd1126b
cleanup(di): removed dead code
2015-04-22 14:48:53 -07:00
f7f06c5ad4
chore: add more type annotations
2015-04-21 08:49:05 -07:00
e23004df52
fix(di): capture original exception in InvalidBindingError
...
Fixes #1406
Closes #1459
2015-04-21 10:59:44 +02:00
5c25248582
docs(x-ref links): Change links to use dgeni syntax
...
Closes #1440
2015-04-20 18:45:04 +00:00
447018b54b
docs: change primordial injector to platform injector
2015-04-20 16:45:23 +00:00