Jeremy Elbourn
20a033e4c9
chore(material): add simple e2e smoke tests for components.
2015-05-07 15:13:30 -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
vsavkin
49777648b3
fix(decorators): fixed decorators
2015-05-06 21:08:55 -07:00
vsavkin
cb87fa0970
chore(build): migrated di to TypeScript
2015-05-06 19:00:56 -07:00
Kevin Moore
649e276610
chore: support last dev build of Dart at 1.10.0-dev.1.10
...
Can revert once 1.11 is available
2015-05-06 18:21:46 -07:00
Kevin Moore
5ef11774c2
chore: update pubspec files
...
Allow latest analyzer version
Add an upper constraint to the Dart SDK
2015-05-06 17:55:03 -07:00
Kevin Moore
75db2c5241
chore: add more types to a number of top-level properties and methods
2015-05-06 17:53:44 -07:00
Tim Blasi
c8ebd11d63
feat(dart/transform): Generate DirectiveMetadata for exports
...
For all files that export another library, include `DirectiveMetadata`
for the exported library in that file's associated `ng_meta.json` file.
2015-05-06 17:17:04 -07:00
Alex Wolfe
577a80371f
fixed build process by adding comment
2015-05-06 15:27:25 -07:00
Rado Kirov
be7504d451
fix(decorators): fixes decorator reflection.
...
The bug appears when there are only type annotations without parameter
annotations.
2015-05-06 13:44:44 -07:00
Tim Blasi
169e4e862d
refactor(dart/transform): Use render Compiler concepts
...
Update `TemplateCompiler` transform step to use abstractions used by the
render `Compiler`. For example, template code is now loaded via an
instance of `TemplateLoader` and external resources are fetched via an
instance of `XHR`.
2015-05-06 12:51:49 -07:00
Tobias Bosch
abc3de7efe
refactor(render): rename `RenderView` and `RenderProtoView`
...
Part of #1675
Closes #1705
2015-05-06 11:46:52 -07:00
Tobias Bosch
0856516ae9
refactor(renderer): separate compiler from renderer
...
Part of #1675
Closes #1702
2015-05-06 10:50:15 -07:00
Rado Kirov
c9cec60007
fix(router): fix for leading slash in dart
...
Using string1 === string2 translates to identical(string1, string2) in
dart, which is incorrect as it is possilbe for dart strings to have
different reference.
2015-05-05 15:19:06 -07:00
Rado Kirov
f356d03362
feat(dom): add location and history as DOM-like APIs.
...
Instead of global access methods.
2015-05-05 14:50:53 -07:00
Tim Blasi
0520ca68b4
feat(dart/transform): Add DirectiveMetadataExtractor transform step
...
Add a step that reads `DirectiveMetadata` object off annotated classes
into `.ng_meta.dart` files. These will be used by the `TemplateCompiler`
step as inputs to the Angular 2 render compiler.
Update one test to avoid unsupported functionality, format others.
2015-05-05 12:07:50 -07:00
Rado Kirov
8e1d53b5e9
feat(router): adds the router to the self-executing bundle.
...
Due to limitation of system build, the router cannot have its own sfx
bundle.
Fixes an issue with RouteConfig decorator by moving it into its own
file.
2015-05-05 10:55:23 -07:00
Kevin Moore
f5b56c627b
refactor: add types to top-level fields in change_detection
...
Also introduced an abstract PipeFactory base class
2015-05-05 10:21:56 -07:00
Jeremy Elbourn
f88c4b77ca
feat(material): add prototype dialog component w/ demo.
2015-05-04 16:43:15 -07:00
Brian Ford
75da6e4c4a
feat(router): export decorator version of RouteConfig
2015-05-04 15:44:16 -07:00
Jacob MacDonald
1864f60afb
feat(benchmarks): Add basic dart transformer benchmarks.
...
Adds simple benchmarks for various transformation phases, as well as hello_world.
Does not integrate these into any benchmark frameworks yet.
2015-05-04 14:03:58 -07:00
Rado Kirov
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
Brian Ford
28feac9411
refactor(router): rename "alias" to "as"
2015-05-03 20:37:00 -07:00
Brian Ford
9153331303
feat(router): route redirects
2015-05-03 20:37:00 -07:00
Brian Ford
9d5c33f9dd
feat(router): sibling outlets
2015-05-03 20:26:47 -07:00
Brian Ford
2713b7877b
fix(router): navigate on popstate event
2015-05-03 20:26:22 -07:00
Brian Ford
259f872cea
fix(router): throw if config does not contain required fields
2015-05-01 16:41:25 -07:00
Brian Ford
68ed8f1b6b
refactor(router): rename LocationMock to LocationSpy
2015-05-01 16:41:25 -07:00
Brian Ford
ef7014fe19
feat(router): export routerInjectables
2015-05-01 16:41:25 -07:00
Brian Ford
46ad3552c7
fix(router): infer top-level routing from app component
...
Closes #1600
2015-05-01 16:41:25 -07:00
Brian Ford
4965226f3f
fix(router): use lists for RouteConfig annotations
2015-05-01 15:55:53 -07:00
Brian Ford
ea546f5069
feat(router): add location service
2015-05-01 15:55:53 -07:00
vsavkin
ce6a2ba836
refactor(view): moved the logic from ProtoView to ProtoViewFactory
2015-05-01 13:35:17 -07:00
Alex Eagle
3c77855b39
chore(build): Remove .es6 files which shadow .ts files.
...
This removes .es6 files which are pure duplicates of a
.ts file in the same folder.
Next we need to remove .js files as well, and remove karma preprocessors for dart.
2015-05-01 09:51:03 -07:00
vsavkin
c1579222bd
fix(view): changed view manager to hydrate change detector after creating directives
2015-04-30 22:01:55 -07:00
Rado Kirov
f863ea0db5
feat(decorators): adds support for parameter decorators.
...
Paramater decorators expect to be called as currently implemented by TS.
2015-04-30 18:42:40 -07:00
vsavkin
e4342743c0
feat(benchmark): added an implementation of the tree benchmark in React
2015-04-30 18:12:21 -07:00
Tobias Bosch
9e8d31d532
fix(compiler): clone templates before compiling them
...
This is needed as the compiler changes templates during compilation
and we are caching templates in the `TemplateLoader`.
Closes #1058
2015-04-30 16:40:57 -07:00
Tobias Bosch
f75a50c1dd
refactor(compiler): rename decorator directives into directive
...
BREAKING CHANGE:
Previously, `Directive` was the abstract base class of several directives.
Now, `Directive` is the former `Decorator`, and `Component` inherits from it.
2015-04-30 13:38:40 -07:00
Tobias Bosch
c671706518
refactor(benchpress): report forced gc metric separately
2015-04-30 12:15:30 -07:00
Tobias Bosch
ead21c91a4
fix(exception_handler): log errors via `console.error`
...
This is e.g. needed as we use this to test for errors
in our examples.
2015-04-30 11:45:34 -07:00
Rado Kirov
87dcd5eb6f
fix(decorators): updates missing benchmark and fixes typo.
2015-04-30 10:22:30 -07:00
Tobias Bosch
8faf6364dc
refactor(core): remove DynamicComponent
...
BREAKING CHANGE:
A dynamic component is just a component that has no @View annotation…
2015-04-30 09:17:25 -07:00
Alex Eagle
bb50fc131b
chore(build): update TypeScript version to unreleased beta
...
Also fixup the typings which were broken by changes in typescript's lib.d.ts.
Second attempt to merge this, now that bugfix for tsd is in.
2015-04-29 17:03:02 -07:00
Tobias Bosch
3aac2fefd7
refactor(compiler): remove `Viewport` directives, use `Decorator` instead
...
BREAKING_CHANGE:
- The special type of `Viewport` directives is removed
in favor of a more general `Decorator` directive
- `ViewContainerRef` now no more has a default `ProtoViewRef`
but requires an explicit one when creating views.
Closes #1536
2015-04-29 15:59:55 -07:00
Rado Kirov
fb67e37339
feat(decorators): adds decorators to be used by TS and Babel transpiled apps.
2015-04-29 15:13:25 -07:00
Tim Blasi
648c514c28
feat(dart/transform): Add directiveMetadata{To,From}Map
...
Add utility methods to convert `render.dom.DirectiveMetadata` to and
from maps. This will allow saving and restoring `DirectiveMetadata` in
the Angular 2 Transformer.
We discussed adding this as a member on `DirectiveMetadata`. Since this
is not necessary for anything except the Transformer, we decided to put
it into a separate file to avoid shipping it with the Angular 2 core
code.
2015-04-29 14:22:08 -07:00