vsavkin
032f8b7840
fix(test): fixed a test
2015-05-12 14:40:20 -07:00
Misko Hevery
f302f70330
chore: convert dom module to typescript
2015-05-12 12:59:53 -07:00
Jeff Cross
96b0a1c75e
refactor(PromisePipe): use lexical this inside of transform
2015-05-12 12:40:13 -07:00
Victor Berchet
e11c20541a
refactor(VmTurnZone): renamed to NgZone
...
BREAKING CHANGE:
VmTurnZone has been renamed to NgZone.
- The public API has not chnanged,
- The "outer" zone is now named "mount" zone (private to NgZone).
2015-05-12 21:03:24 +02:00
Victor Berchet
c75e216871
refactor(VmTurnZone): outer zone = root zone
2015-05-12 21:03:24 +02:00
Victor Berchet
fd1d60f03b
refactor(VmTurnZone): use the browser microtask queue for JS
2015-05-12 21:03:24 +02:00
Victor Berchet
e8a6c95e2a
feat(VmTurnZone): Rework the implementation to minimize change detection runs
...
Before this PR there were only 2 zones: root zone = outer zone > inner
zone.
This PR creates the outer zone as a fork of the root zone: root > outer
> inner.
By doing this it is possible to detected microtasks scheduling in the
outer zone and run the change detection less often (no more than one
time per VM turn).
The PR also introduce a Promise monkey patch for the JS implementation.
It makes Promises aware of microtasks and again allow running the change
detection only once per turn.
2015-05-12 21:03:24 +02:00
yjbanov
358a6750ed
feat(di): support type literals in DI
2015-05-12 10:57:53 -07:00
Pawel Kozlowski
229e770a1d
refactor(forms): rename FormDirectives to formDirectives
...
BREAKING CHANGE:
A collection of all the form directives is exported
under `formDirectives`
while those were previously available
under `FormDirectives`.
Closes #1804
2015-05-12 18:44:25 +02:00
Pawel Kozlowski
5036086fb3
fix(forms): export directives as const in Dart
...
Fixes #1283
2015-05-12 18:44:25 +02:00
Tim Blasi
97d24563f4
feat(dart/transform): Inline `templateUrl` values
...
Modify DirectiveProcessor to inline `templateUrl` values to avoid making
additional browser requests.
Closes #1035
2015-05-12 09:08:56 -07:00
Pawel Kozlowski
655ed851f0
refactor(facade/lang): remove unneded semicolons
...
Those were previously enforced incorrectly by clang-format
Closes #1816
2015-05-12 08:50:44 +02:00
Rado Kirov
a574154108
fix(router): add baseUrl to relative paths, but not absolute.
...
Closes #1783
2015-05-11 18:55:24 -07:00
vsavkin
7f976381d5
fix(view): fixed ProtoViewFactory to get all property bindings
2015-05-11 17:38:34 -07:00
Brian Ford
ac80df0959
fix(router): reuse common parent components
2015-05-11 15:49:40 -07:00
Brian Ford
aff85b5037
feat(facade): add equals method to StringMapWrapper
2015-05-11 15:49:40 -07:00
Jeff Cross
5691063ba0
refactor(ChangeDetection): rename AsyncPipe to ObservablePipe
...
The async pipe in templates will now delegate to both Observable pipe or Promise pipe,
whichever first says it can support the input. Therefore, it's beneficial to disambiguate
the name of the AsyncPipe/AsyncPipeFactory constructors to reflect that these actually
support only Observables.
2015-05-11 14:25:27 -07:00
Jeff Cross
7498758584
feat(PromisePipe): add pipe for promises
2015-05-11 14:23:46 -07:00
vsavkin
f9c1de46b3
feat(compiler): added support for host actions
2015-05-11 13:28:19 -07:00
vsavkin
a9ce0f7afb
cleanup(di): use typescript initialization idioms
2015-05-11 12:34:22 -07:00
Rado Kirov
77d1fc149a
fix(router): router-link works without params
...
Router-link attaches a listener to prevent default behavior and
navigate.
Closes: 1689
2015-05-11 11:58:38 -07:00
Rado Kirov
c2a42d5d2b
fix(location): dartium does not like pushState with null.
...
According to
https://developer.mozilla.org/en-US/docs/Web/Guide/API/DOM/Manipulating_the_browser_history
the value of the title parameter is irrelevant anyways.
2015-05-11 11:48:45 -07:00
Jacob MacDonald
01d5c29513
fix(transformer): remove classDefParser in favor of hardcoded strings to speed up build
2015-05-11 10:45:02 -07:00
Kevin Moore
7844e3a275
chore: dartfmt Dart code in the repo
2015-05-11 09:50:33 -07:00
Pawel Kozlowski
a5638a940c
feat(directives): export collection of core directives
...
Closes #1524
2015-05-11 16:47:45 +02:00
Pawel Kozlowski
4665726f48
feat(lang): support const expressions in TS/JS and Dart
...
Closes #1796
2015-05-11 12:11:24 +02:00
Tobias Bosch
4f3433b5bd
feat(view): allow to transplant a view into a ViewContainer at another place.
...
Closes #1492 .
2015-05-08 21:35:01 -07:00
yjbanov
2185e7cee9
feat(di): expose parent injector
2015-05-08 17:11:27 -07:00
yjbanov
1a0da11e55
feat(di): components can self-publish via publishAs
2015-05-08 16:13:00 -07:00
Tim Blasi
abc8878547
feat(dart/transform): Reuse readDirectiveMetadata in plugin
...
Share code for parsing `DirectiveMetadata` values between the
transformer and the analyzer plugin.
2015-05-08 14:34:16 -07:00
Brian Ford
853d1de6ec
fix(router): strip base href from URLs when navigating
2015-05-08 13:51:43 -07:00
Brian Ford
84dc6ae76b
fix(test_lib): spy funcs should match null arguments
2015-05-08 13:51:43 -07:00
Brian Ford
05219a54cd
feat(dom): add getBaseHref method
2015-05-08 13:51:42 -07:00
PatrickJS
4b62a722f0
feat(change_detection.js): export null pipes
...
rather then having developers creating their own null pipes
Closes #1624
2015-05-08 13:50:17 -07:00
gdi2290
09b39bf77a
docs(core): fix Formatters -> Pipes
...
long overdue update
Closes #1629
2015-05-08 13:45:13 -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
Matan Lurey
2cb066215a
Add correct type to TestBed.createView
...
Closes #1727
2015-05-08 13:17:42 -07:00
Tim Blasi
200e190f70
fix(dart/transform): Handle `hostAttributes` in DirectiveMetadata
...
Handle `hostAttributes` in the transformer.
`hostAttributes` was introduced in 51839ca677
Closes #1742
2015-05-08 11:19:11 -07:00
Tim Blasi
44f829dbc6
feat(dart/transform): Use the render Compiler and the DirectiveParser
...
Update the `TemplateCompile` step to use the full render `Compiler`.
Provide `DirectiveMetadata` for `ViewDefinition` objects and use it to
run the `DirectiveParser` step of the render compile pipeline.
2015-05-08 11:18:40 -07:00
vsavkin
d717529e9a
fix(change_detection): updated dynamic change detector not to mutate when throwing
...
Closes #1762
2015-05-08 10:46:08 -07:00
Tobias Bosch
c68fa27444
refactor(render): remove recursion from renderer
...
The goal is to make implementing a renderer straight forward.
BREAKING_CHANGE:
- Renderer interface was redone / simplified.
- `DirectDomRenderer` was replaced by `DomRenderer`.
- `DirectDomRenderer.setImperativeComponentRootNodes` is replaced
by the following 2 steps:
1. `ViewManager.getComponentView(elementRef) -> ViewRef`
2. `DomRenderer.setComponentViewRootNodes(viewRef, rootNodes)`
- all `@View` annotations need to have a template, but the template
may be empty. Previously views that had a `renderer` property did
not have to have a `template`.
- `dynamicComponentLoader.loadIntoNewLocation` does no more allow
to pass an element, but requires a css selector.
Special syntax: `:document` can be used as prefix to search globally
on the document instead of in the provided parent view.
Part of #1675
2015-05-08 09:37:41 -07:00
John Jelinek IV
d2507ac760
Add full example to FormBuilder docs
2015-05-08 16:35:25 +02:00
Martin Probst
4ce0d5e024
fix(dart): Remove unused imports.
...
These imports cause dart analyze errors once ts2dart removes the
IMPLEMENTS import.
2015-05-08 15:24:37 +02:00
Matthew Hill
5d9e573b3e
docs(annotations): differentiate between component definitions and component instances
...
Closes #1661
2015-05-08 14:50:33 +02:00
Pawel Kozlowski
51839ca677
feat(compiler): allow setting attributes on a host element
...
Closes #1402
2015-05-08 14:22:07 +02:00
vsavkin
fa28b28d0a
build(typescript): Migrated change detection to typescript
2015-05-07 17:18:04 -07:00
PatrickJS
93c331d103
fix(decorators.es6): export Directive decorator
...
Closes #1688
2015-05-07 15:12:22 -07:00
Alex Eagle
1daa8aa3a1
chore(shrinkwrap): update dependencies to latest
...
Also, our package.json was out-of-sync with npm-shrinkwrap.json; see https://github.com/angular/angular/issues/1737
This includes a fix for the shrinkwrapping of ts2dart; see https://github.com/angular/ts2dart/issues/138
2015-05-07 14:29:43 -07:00
Misko Hevery
b0c735f72c
fix(decorators): incorrect annotation to decorator adapter
2015-05-07 12:30:18 -07:00
Jacob MacDonald
0e2047f9ca
chore(benchmarks): add transform benchmark runner and clean up benchmark output
2015-05-07 10:36:04 -07:00