Igor Minar
2e1f3f003d
build: adding basic e2e testing infrastructure
2016-05-02 08:15:10 -07:00
Tobias Bosch
fdd8bd1a36
chore: use `ng2tc` for compiling and running tests on ci
2016-05-01 23:40:59 -07:00
Tobias Bosch
7db911fdd4
chore: update to tsickle 0.1.2
2016-05-01 23:40:59 -07:00
Tobias Bosch
b6fd81169b
feat(core): support the decorator data that tsickle produces
2016-05-01 23:40:59 -07:00
Alex Eagle
3ae856ab8b
build(tsc): Use angular2-template-compiler in place of tsc
...
This lets us down-level Decorators with tsickle and produce .metadata.json
files for users to reference when offline-compiling their app.
2016-05-01 23:40:59 -07:00
Misko Hevery
ce5b37239e
chore: add lint job to travis
2016-05-01 22:59:41 -07:00
Misko Hevery
3e17c99f4e
chore: clang-reformat
2016-05-01 22:59:41 -07:00
Misko Hevery
bb8976608d
fix: karma timouts for saucelabs
2016-05-01 22:27:55 -07:00
Misko Hevery
cd52318f48
fix: parse browser detection lazily
2016-05-01 22:27:55 -07:00
Misko Hevery
2570b72158
fix: textSelection on FireFox
2016-05-01 22:27:55 -07:00
Misko Hevery
6e79de794c
fix: function name shim test
2016-05-01 22:27:55 -07:00
Alex Eagle
c4be30d2e8
Revert "build(tsc): Use angular2-template-compiler in place of tsc"
...
This reverts commit 3d25294f706e0fd6224b20372be1e961959c0af8.
2016-05-01 20:51:00 -07:00
Alex Eagle
57240c85a5
build(tsc): Use angular2-template-compiler in place of tsc
...
This gives us tsickle pre-processing of Decorators, and produces
.metadata.json files for users to consume in their offline compilation.
2016-05-01 20:51:00 -07:00
Igor Minar
a66cdb469f
repackaging: all the repackaging changes squashed
2016-05-01 20:51:00 -07:00
Igor Minar
505da6c0a8
repackaging: all the file moves
2016-05-01 20:51:00 -07:00
vsavkin
4fe0f1fa65
feat(router): set router-link-active when RouterLink is active
...
Closes #8376
2016-05-02 01:03:22 +00:00
vsavkin
ec4ca0eace
feat(router): implements support for router-link-active
2016-05-02 01:03:22 +00:00
Alex Eagle
db95fd6ca9
build(offline compiler): package the compiler-cli for users
...
Closes #8341
2016-05-02 00:38:54 +00:00
vsavkin
ca13f1c024
fix(router): create a route tree when creating the router service
...
Closes #8365
2016-05-01 21:38:25 +00:00
vsavkin
277b1fc473
feat(router): add RouteTree and UrlTree as aliases to Tree<RouteSegment> and Tree<UrlSegment>
2016-05-01 21:38:25 +00:00
vsavkin
8836219b16
feat(router): add support for wildcards
2016-05-01 21:38:25 +00:00
Alex Eagle
6f5e3f9390
Update evaluator.spec.ts
...
Fix stray `fit` that skips tools tests
Closes #8373
2016-05-01 18:43:32 +00:00
Alex Eagle
a84c2d7fee
fix(typescript): strip abstract keyword from properties in .d.ts
...
Fixes angular2/src/alt_router/metadata/metadata.d.ts
Closes #8339
2016-05-01 02:59:15 +00:00
Tobias Bosch
f114d6c560
fix(compiler): fix cross view references and providers with `useValue`.
...
Before, we would create all fields in the generated views
with visibility `private`. This does not work if an embedded
view references a directive / element in a parent view.
In Dart, this was no problem so far as it does not have
a `private` modifier.
Before, `useValue` in a provider did not work when doing
offline compile, as so far the `MetadataResolver` was only
used for jit mode. Now, `useValue` supports any kind of value
that the static reflector can return. E.g. primitives,
arrays, string maps, …
Closes #8366
2016-05-01 02:30:33 +00:00
Tobias Bosch
163d80adb7
fix(compiler_cli): make sure the generated code gets compiled via tic
2016-05-01 02:30:33 +00:00
Tobias Bosch
9e05814212
chore: move StaticReflector into compiler_cli, part 2
...
Adjust tests and build to run the unit tests again
after the move.
Closes #8363
2016-04-30 20:53:54 +00:00
Tobias Bosch
ab56be46e1
chore: move static_reflector into compiler_cli
...
Most of the bugs discovered so far in the offline compiler were related to the StaticReflector. As it was part of angular2 core, it was hard to update. Moving it into the compiler_cli allows to release more often until the compiler_cli gets more stable.
Note: Moving the unit test next to the sources is the simplest option for now in terms of build setup.
Note: This commit only does the move. The next commit updates the build to run it again.
2016-04-30 20:53:54 +00:00
Tobias Bosch
6a0cbb8a57
refactor(core): type `ComponentRef`, `ComponentFactory` and `ComponentFixture` by the component type
...
BREAKING CHANGE:
- `ComponetRef`, `ComponentFactory`, `ComponentFixture` now all require a type
parameter with the component type.
Closes #8361
2016-04-30 19:47:54 +00:00
Tobias Bosch
4e2c68354e
chore: update ts2dart to 0.9.10
2016-04-30 19:47:54 +00:00
vsavkin
62a0809e81
feat(router): listen to location changes
...
Closes #8362
2016-04-30 19:02:14 +00:00
vsavkin
76d6f5fa0d
fix(router): canDeactivate should not change the url when returns false
...
Closes #8360
2016-04-30 17:50:28 +00:00
Julie Ralph
0f1b370117
feat(tests): add ROUTER_FAKE_PROVIDERS to angular2/alt_router/router_testing_providers
...
This change adds providers for fake router dependecies.
This allows TestComponentBuilder to create components with RouterLink and RouterOutlet directives
without the test writer needing to override them.
2016-04-30 09:42:15 -07:00
Gautam krishna.R
e589f9949b
chore: align badges in README.md
2016-04-30 08:47:49 -07:00
Tobias Bosch
0f774df811
fix(compiler): project using the right directive as component.
...
Closes #8344
2016-04-29 18:30:30 -07:00
Tobias Bosch
351f24e8eb
fix(core): return the ChangeDetectorRef of the component also for embedded views.
2016-04-29 18:30:30 -07:00
Tobias Bosch
aecb60a604
refactor(core): use `Function.bind` for referring to event listeners instead of a closure.
2016-04-29 18:30:30 -07:00
Tobias Bosch
4d691b61ee
fix(core): check components if an event handler inside of an embedded view fires.
...
BREAKING CHANGE:
- ViewRef.changeDetectorRef was removed as using ChangeDetectorRefs
for EmbeddedViewRefs does not make sense. Use ComponentRef.changeDetectorRef
or inject ChangeDetectorRef instead.
Fixes #8242
2016-04-29 18:30:29 -07:00
Tobias Bosch
11955f9b13
fix(compiler): support empty array and map literals.
...
This was broken after 152a117d5c
Fixes #8336
2016-04-29 18:30:29 -07:00
vsavkin
5ff31f0713
build(router): create alt_router bundle
2016-04-29 18:05:36 -07:00
vsavkin
deba804671
feat(router): add CanDeactivate
2016-04-29 18:05:06 -07:00
vsavkin
e5b87e55da
feat(router): implement relative navigation
2016-04-29 18:04:55 -07:00
Martin Probst
d097784d57
chore: adjust public API spec to API changes.
2016-04-29 17:34:32 -07:00
Tobias Bosch
15f6b27ae0
refactor(compiler): support referenced `OpaqueToken`s correctly in offline compiler.
2016-04-29 16:53:51 -07:00
Martin Probst
176e55927c
refactor(compiler): support hash syntax for providers.
2016-04-29 16:53:50 -07:00
Martin Probst
365be6a309
chore: clang-format after various changes.
2016-04-29 16:53:50 -07:00
Martin Probst
713e6d4aff
chore: adjust router to /*@ts2dart...*/
2016-04-29 16:53:50 -07:00
Misko Hevery
a8e277b067
chore: remove const Provider() in favor of /* @ts2dart_Provider */ {provide:}
2016-04-29 16:53:50 -07:00
Misko Hevery
3aa322a9c6
chore: replace @CONST() with /*@ts2dart_const*/
2016-04-29 16:53:50 -07:00
Misko Hevery
a02614beaa
chore: replace CONST_EXPR with /*@ts2dart_const*/
2016-04-29 16:53:49 -07:00
Misko Hevery
d2527b504a
chore: upgrade to ts2dart@0.9.9
2016-04-29 16:53:49 -07:00