440fd11c72
feat(facade): add fromISODate method
2015-10-13 12:06:22 -07:00
947bf11cb6
chore(docs): copy [Decorator]Metadata docs to the [Decorator]
...
This allows editors to show the docs when users navigate to definition.
See #4668
Closes #4683
2015-10-13 00:30:24 +00:00
1aeafd31bd
feat(di): change the params of Provider and provide to start with "use"
...
Closes #4684
2015-10-12 21:09:09 +00:00
eacc8e3803
fix(compiler): merge class
and style
attributes from the element with the host attributes
...
Closes #4583
Closes #4680
2015-10-12 15:35:49 +00:00
b96784756c
chore(docs): remove @View decorator from examples in docs
...
Closes #4666
2015-10-11 22:02:38 +00:00
62005dd127
docs(core): fix links in core docs
2015-10-11 14:42:36 -07:00
52ebb8f0dd
docs(di): fix links di docs
2015-10-11 14:42:15 -07:00
35878c559f
doc(LifecycleHooks): change Property for Input
...
Closes #4652
2015-10-11 16:44:28 +00:00
1eb0162cde
feat(di): rename Binding into Provider
...
Closes #4416
Closes #4654
2015-10-11 05:13:31 +00:00
7c6130c2c5
feat(core): desugar [()] to [prop] and (prop-change)
...
BREAKING CHANGE
Before
```
<cmp [(prop)]="field"> was desugared to <cmp [prop]="field" (prop)="field=$event">
```
After
```
<cmp [(prop)]="field"> is desugared to <cmp [prop]="field" (prop-change)="field=$event">
```
Closes #4658
2015-10-11 02:58:13 +00:00
df09389df8
docs(NgClass): update docs, add example
...
Closes #4520
2015-10-10 11:42:25 +00:00
90191ce261
refactor(router): use ApplicationRef to provide the first bootstrapped component as ROUTER_PRIMARY_COMPONENT automatically.
...
This removes the routerBindings function as it is no longer necessary. ROUTER_BINDINGS will automatically pick the first bootstrapped component to satisfy ROUTER_PRIMARY_COMPONENT.
BREAKING CHANGE:
Before: bootstrap(MyComponent, [routerBindings(myComponent)]);
After: bootstrap(MyComponent, [ROUTER_BINDINGS]);
Closes #4643
2015-10-10 05:19:55 +00:00
cd90e6ed8f
feat(ngUpgrade): support for content project from ng1->ng2
2015-10-09 21:25:45 -07:00
867c08ac84
chore(typings): mark underscore methods @internal.
...
This allows TypeScript to produce an API surface which matches the Dart semantics.
I found these with:
gulp build.js.dev && find dist/js/dev/es5/angular2/src -name "*.d.ts" -exec grep -H -n '^ *_' {} \;
Closes #4638
2015-10-10 02:18:33 +00:00
95f984615b
Produce .d.ts files from our typescript compilation.
...
Deliver them into our npm module output so users can consume them directly.
Fixes #3082
2015-10-10 02:18:33 +00:00
393b0526b4
refactor(NgZone): improve types
...
Closes #4642
2015-10-09 23:54:31 +00:00
6207b1af88
feat(ngFor): support a custom template
...
Part of #1989
Closes #4637
2015-10-09 21:52:59 +00:00
a8c34ae290
refactor(MapWrapper): drop delete(), get(), forEach() and size
...
Closes #4618
2015-10-09 20:07:43 +00:00
aab0c57aee
fix(typings): add more missing typings.
...
This is the same bug pattern I reported in https://github.com/Microsoft/TypeScript/issues/5187
Closes #4636
2015-10-09 19:00:42 +00:00
c178ad476e
fix(typings): fix typings which were previously unchecked
...
Closes #4625
2015-10-09 16:23:30 +00:00
597f79e0c7
fix(typings): missing types in ListWrapper typings
2015-10-09 16:23:30 +00:00
bba0248989
fix(core): remove NgZone_ and use NgZone instead
2015-10-08 13:55:26 -07:00
14fa00791e
fix(analyzer): fix dart analyzer errors
2015-10-08 13:54:44 -07:00
d63f3c123e
fix benchmarks
2015-10-08 13:54:44 -07:00
8b725c77fd
fix(tests): fix tests
2015-10-08 13:54:44 -07:00
5458036de7
fix(typings): update test.typings for abstract superclasses
2015-10-08 13:54:43 -07:00
6075509f26
chore(typing): extract abstract superclasses to replace @private constructors
2015-10-08 13:54:43 -07:00
6d4bd5d901
fix(render): recurse into components/embedded templates not until all elements in a view have been visited
...
Fixes #4551
Closes #4601
2015-10-08 11:43:21 -07:00
04b3dee667
fix(css): when compiling CSS, leave absolute imports alone
...
Closes #4592
2015-10-08 16:39:32 +00:00
aee176115b
refactor(ListWrapper): drop forEach and removeLast
...
Closes #4584
2015-10-07 17:17:31 +00:00
4ed642f921
refactor(AppRootUrl): simplify the code
...
Closes #4563
2015-10-07 15:20:32 +00:00
a7b2ab771e
docs(NgStyle): update docs, add examples
...
Closes #4519
2015-10-07 13:24:48 +00:00
aaa215514b
refactor(ListWrapper): get ride of ListWrapper.map
2015-10-07 06:39:14 +00:00
b6537ad609
refactor(ListWrapper): get ride of ListWrapper.join
2015-10-07 06:39:14 +00:00
bd31b01690
feat(core): add syntax sugar to make @View optional
2015-10-07 02:16:42 +00:00
f7aa890ade
chore(docs): rename @private to @internal
...
The latter is understood by TypeScript's --stripInternal option, so this lets us
rely more on the tooling provided by typescript team.
2015-10-06 17:08:41 -07:00
4a36fd8203
fix(core): make .toRx() return Subject
...
this was broken in the original great RxNext migration.
fixes #4521
Closes #4540
2015-10-06 23:27:35 +00:00
6093e28b61
fix(typings): repair broken typechecks
...
We had the typechecker disabled by accident, and many problems snuck in
Fixes #4507
Closes #4508
2015-10-06 13:28:17 +00:00
0b3e4fa090
refactor(core): move ViewEncapsulation
and ViewType
to the right places
...
Closes #4526
2015-10-05 11:22:21 -07:00
0299d4af00
fix(core): keep styles for ViewEncapsulation.Native
isolated per component
...
BREAKING CHANGE:
- `Renderer.registerComponent` now takes an additional argument.
Fixes #4513
Closes #4524
2015-10-05 10:34:42 -07:00
a9aef8e5e6
fix(core): set ViewEncapsulation.Emulated
as the default again
...
Fixes #4494
2015-10-05 10:33:58 -07:00
6fe8b85295
fix(render): keep bindings of components in content and view in the right order
...
Bindings in the component view have to be first, before
bindings of components in the light dom (i.e. have the same
order as used in the `ViewManagerUtils.createView()` method.
Fixes #4522
Closes #4523
2015-10-05 10:10:47 -07:00
208f3d4c65
fix(typings): repair broken type-checking for StringMap
...
Note that the previous type of StringMap was overly permissive and didn't catch errors.
Also we have to explicitly type empty objects, which is explained here:
https://github.com/Microsoft/TypeScript/issues/5089
Closes #4487
2015-10-03 01:09:42 +00:00
7c4199cd1c
chore(typings): remove StringMap
...
This was a poorly typed attempt to mimic TypeScript's index signatures,
which we can use instead.
This eliminates a very strange type that we were exposing to users, but
not re-exporting through our public API.
Fixes #4483
2015-10-03 01:09:42 +00:00
c9901c5fe0
feat(core): support properties and events in addition to inputs and outputs to make transition easier
...
Closes #4482
2015-10-02 23:23:15 +00:00
b44c13bc46
fix(compiler): const is not supported in IE9 and IE10
...
Closes #4465
2015-10-02 21:49:44 +00:00
4342a1eb7b
refactor(core): move DI bindings of compiler into core/compiler/compiler.ts
...
Closes #4470
2015-10-02 13:39:14 -07:00
13161ae5aa
refactor(core): move APP_ID from render/dom/dom_tokens into application_tokens
2015-10-02 13:38:52 -07:00
6b5d345a2b
refactor(core): adjust imports for move files to the right place
...
- render/xhr_* -> compiler/xhr_*
- render/event_config -> linker/event_config
- render/dom/schema -> compiler/schema
- render/dom/compiler/* -> compiler/*
- render/dom/view/shared_styles_host -> render/dom/shared_styles_host
2015-10-02 13:38:51 -07:00
2450a3c5b0
refactor(core): move files to the right place
...
- render/xhr_* -> compiler/xhr_*
- render/event_config -> linker/event_config
- render/dom/schema -> compiler/schema
- render/dom/compiler/* -> compiler/*
- render/dom/view/shared_styles_host -> render/dom/shared_styles_host
- services/url_resolver -> compiler/url_resolver
- services/app_root_urlo -> compiler/app_root_url
2015-10-02 13:38:51 -07:00