Alex Eagle
de18da2a0d
feat(build): require parameter types
...
Fixes #2833
2015-07-21 06:20:13 -07:00
vsavkin
04baa46efe
fix(di): removed default visibility
...
BREAKING CHANGE:
Directives will use the Unbounded visibility by default, whereas before the change they used Self
2015-07-13 16:00:07 -07:00
Martin Probst
3bf8c18c56
chore: run clang-format on code base.
...
This fixes several minor indentation issues (instanceof precendence,
type declaration specificity, template string length calculation).
This should also fix some flip-flop situations with template strings.
2015-07-12 18:50:52 +02:00
Peter Bacon Darwin
2e4a2a0e5a
chore(doc-gen): remove unnecessary @public
and @exportedAs
tags
2015-07-11 07:21:46 +01:00
vsavkin
a6210466c7
fix(di): do not use exceptions to detect if reflection is enabled
2015-07-10 10:50:03 -07:00
vsavkin
b54e7214f0
chore: removed angular2.api.ts
...
BREACKING CHANGE:
We export InjectMetadata instead of InjectAnnotation
2015-07-09 13:54:07 -07:00
Alex Eagle
44891996b5
fix(build): add missing return types now enforced by linter
2015-06-29 15:31:41 -07:00
vsavkin
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
Martin Probst
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
Victor Berchet
ffd1ac425e
style(DI): idiomatic TS
2015-06-17 11:22:16 +02:00
Victor Berchet
cdfb635737
refactor(facade): refactor type check function - is*()
2015-06-16 19:27:34 +02:00
Misko Hevery
2ccc65d7fd
fix: Improve error message on missing dependency
2015-06-10 16:40:38 -07:00
elimach
a80921b45d
fix(binding): unbalanced curly brackets in documentation
2015-05-29 17:54:51 +02:00
Victor Berchet
ec2d8cc2c8
feat(binding): throw on binding to a blank alias
...
fixes #2068
2015-05-28 22:37:29 +02:00
Martin Probst
2c25055828
chore: reformat the code base using the clang-format 1.0.15.
2015-05-27 15:28:22 -07:00
vsavkin
fed86fc8ac
feat(injector): support forwardRef in toAlias
2015-05-21 09:52:43 -07:00
vsavkin
705ee46f31
fix(di): changed host and view injector to respect visibility
2015-05-21 09:17:56 -07:00
vsavkin
f210c41c1f
feat(di): changed toFactory to support dependency annotations
2015-05-21 08:34:48 -07:00
Victor Berchet
b033416a45
doc(DI): fix inline doc in binding.ts
...
fixes #1894
2015-05-18 23:10:41 +02:00
Misko Hevery
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
vsavkin
a9ce0f7afb
cleanup(di): use typescript initialization idioms
2015-05-11 12:34:22 -07:00
Kevin Western
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
vsavkin
fa28b28d0a
build(typescript): Migrated change detection to typescript
2015-05-07 17:18:04 -07:00
vsavkin
cb87fa0970
chore(build): migrated di to TypeScript
2015-05-06 19:00:56 -07:00