0dcca1a28e
refactor(ListWrapper): drop filter, find, reduce & any
...
Closes #5152
2015-11-09 19:24:14 +00:00
e667ad3e6b
refactor(compiler): make all commands const
...
Closes #5135
2015-11-09 10:59:08 -08:00
79472b77ca
refactor(core): move facades out of core
...
This is part of ongoing work to make core platform-independent.
BREAKING CHANGE
All private exports from 'angular2/src/core/facade/{lang,collection,exception_handler}' should be replaced with 'angular2/src/facade/{lang,collection,exception_handler}'.
2015-11-07 01:36:06 +00:00
a0a627f2f9
refactor(StringWrapper): remove useless methods
...
Closes #5039
2015-11-06 17:04:01 +00:00
4439106a1f
feat(facade): add support for async validators returning observables
...
Closes #5032
2015-11-06 01:20:03 +00:00
6edd964a83
chore(core): move compiler out of core
...
BREAKING CHANGE
All imports from 'angular2/core/compiler' should be changed to 'angular2/compiler'.
2015-11-05 14:44:52 -08:00
c56efc0c5f
refactor(ChangeDetector): use View/ShadowDom & Content/LightDom consistently
2015-11-05 19:28:30 +00:00
f54ba3cc1b
docs(query_list): update highlight language
...
Closes #5029
2015-11-05 08:55:25 +00:00
f1989e7e1c
fix(compiler): remove style when [style.foo]='exp' evaluates to null
...
Fixes #5110
Closes #5114
2015-11-05 06:50:46 +00:00
69e4b62809
docs(onDestroy): fix broken backticks
...
Closes #5089
2015-11-04 17:51:32 +00:00
5948abab7a
feat(core): add support for ambient directives
...
Ambient directives can be configured when bootstraping an application.
Ambient directives can be used in every component of the application without
needing to explicitly list them.
2015-11-03 07:54:29 -08:00
ca3986f31d
refactor(async): refactor EventEmitter
...
Refactor EventEmitter and Async Facade to match ES7 Observable semantics, properly use RxJS typedefs, make EventEmitter inherit from RxJS Subject. Closes #4149 .
BREAKING CHANGE:
- consumers of EventEmitter no longer need to call .toRx()
- EventEmitter is now generic and requires a type - e.g. `EventEmitter<string>`
- EventEmitter and Observable now use the `.subscribe(generatorOrNext, error, complete)` method instead of `.observer(generator)`
- ObservableWrapper uses `callNext/callError/callComplete` instead of `callNext/callThrow/callReturn`
2015-10-29 23:06:16 +00:00
7f806f7687
refactor: remove useless imports
...
Closes #4426
2015-10-29 02:49:08 +00:00
098201d0b8
fix(lint): enforce that module-private members have @internal.
...
This is needed to prevent leaking internal APIs to users via our published .d.ts typings.
Fixes #4645
Closes #4989
2015-10-28 22:14:48 +00:00
e3c9397717
docs(element_injector): fix comment for ElementInjectorDynamicStrategy
...
Closes #4414
2015-10-28 20:29:05 +00:00
c02f2bdab0
chore: adjust formatting to new clang-format.
...
- fixes wrapping for object literal keys called `template`.
- spacing in destructuring expressions.
- changes to keep trailing return types of functions closer to their
function declaration.
- better formatting of string literals.
Closes #4828
2015-10-28 11:19:10 +01:00
dd2598ccd8
refactor: use ListWrapper.find()
2015-10-27 01:16:46 +00:00
b90d899408
doc(DynamicComponentLoader): update API doc
2015-10-27 01:16:46 +00:00
04b4035ecd
refactor(AppViewListener): prefix listener with on for consistency
...
Closes #3925
2015-10-26 18:28:27 +00:00
fd0ba37734
refactor(dart): Format Dart code
...
Use the dart formatter to clean up all pure Dart code.
Closes #4832
2015-10-20 17:39:37 +00:00
be3e7db5db
docs(chore): make styles consistent for API doc headings
...
Closes #4816
2015-10-19 14:58:22 +00:00
bfbf18d983
feat(query): add filter and reduce to QueryList
...
Closes #4710
2015-10-13 23:52:17 +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
b96784756c
chore(docs): remove @View decorator from examples in docs
...
Closes #4666
2015-10-11 22:02:38 +00: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
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
a8c34ae290
refactor(MapWrapper): drop delete(), get(), forEach() and size
...
Closes #4618
2015-10-09 20:07:43 +00:00
c178ad476e
fix(typings): fix typings which were previously unchecked
...
Closes #4625
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
aee176115b
refactor(ListWrapper): drop forEach and removeLast
...
Closes #4584
2015-10-07 17:17:31 +00:00
aaa215514b
refactor(ListWrapper): get ride of ListWrapper.map
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
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
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
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
a251df9df4
docs: api docs for Renderer and all the related apis
...
Closes #4459
2015-10-02 17:05:48 +00:00