Pawel Kozlowski
2f047887d3
chore(bundles): unify padding with dependencies
2015-11-03 08:31:44 +00:00
Pawel Kozlowski
9220b0bbc1
chore(bundles): unify router bundles creation with other bundles
2015-11-03 08:31:44 +00:00
vsavkin
16bc238f10
feat(core): make transformers handle @Input/@Output/@HostBinding/@HostListener
...
Closes #5080
2015-11-03 00:46:54 +00:00
vsavkin
045919b595
refactor(playground): update Zippy to use @Input and @Output
2015-11-03 00:46:54 +00:00
vsavkin
6f1a89e3a9
refactor(playground): update the order management example to use the recommended APIs
2015-11-03 00:46:54 +00:00
vsavkin
134c6f57d5
refactor(playground): update Zippy to use @Input and @Output
2015-11-03 00:46:54 +00:00
vsavkin
bf07f9c3e1
refactor(playground): update the order management example to use the recommended APIs
2015-11-03 00:46:54 +00:00
Yegor Jbanov
c814dfbfa5
fix: remove internal usages of deprecated overrideOnTurnDone
...
Closes #5079
2015-11-02 23:46:20 +00:00
Yegor Jbanov
8dc079eee5
docs: add @Input/@Output to deprecation messages
2015-11-02 14:48:23 -08:00
Yegor Jbanov
c4129071ef
docs(metadata): provide deprecation messages
2015-11-02 14:48:22 -08:00
Tobias Bosch
37c65b74e3
chore: fix incremental test.unit.dart
...
Always pass the global typings to ts2dart, independent of the result of the riffing
Closes #4881
Closes #5070
2015-11-02 20:46:27 +00:00
vsavkin
1c322f13e5
feat(forms): update FormBuilder to support async validations
...
Closes #5020
2015-11-02 18:03:03 +00:00
vsavkin
31c12af81f
feat(forms): add support for adding async validators via template
...
Example:
@Directive({
selector: '[uniq-login-validator]',
providers: [provide(NG_ASYNC_VALIDATORS, {useExisting: UniqLoginValidator, multi: true})]
})
class UniqLoginValidator implements Validator {
validate(c) { return someFunctionReturningPromiseOrObservable(); }
}
2015-11-02 18:03:03 +00:00
vsavkin
cf449ddaa9
feat(forms): implements a combinator for composing async validators
2015-11-02 18:03:02 +00:00
vsavkin
53bd6e1642
feat(facade): add ObservableWrapper.fromPromise
2015-11-02 18:03:02 +00:00
Marc Laval
d6e7a51d9c
chore(build): npm install fails on Windows after analytics feat
...
Closes #5055
2015-11-02 10:28:47 +01:00
mlaval
13447e3198
build(browserstack): initial setup
...
Closes #4941
2015-11-01 23:22:40 +01:00
Marc Laval
84fe0c9d3e
build(browserstack): add npm dependencies
2015-11-01 23:21:15 +01:00
Misko Hevery
1b78342e23
chore(ngUpgrade): Move into Angular2
...
This is moving ngUpgrade into the main repository per #4838 .
The ngUpgrade is published from the main import consistent with
https://docs.google.com/document/d/1rbVTKTYLz6p2smQNYI8h4-QN-m2PS6F3iQIDmSzn0Ww/edit#heading=h.6cxvr9awtf5r
Closes #4931
2015-10-31 20:48:27 -07:00
Alex Eagle
54f7e62c43
chore(travis): upload dist folder anytime the js and dart builds succeed
...
Closes #5033
2015-10-31 04:29:48 +00:00
Brian Ford
0ebe283b37
feat(router): provide RouteConfig object for AuxRoute
...
Closes #4319
2015-10-30 17:26:12 -07:00
Brian Ford
23784a2eca
fix(router): properly serialize aux routes
...
Previously, routes would be generated with a leading slash after the parens:
example.com/foo(/bar)
This fix removes the trailing slash when generating the URL, so now we have:
example.com/foo(bar)
This change is not breaking because we still recognize both forms. We just normalize
without the slash.
2015-10-30 17:26:12 -07:00
Tobias Bosch
d8775e0e1f
fix(shadow_css): strip comments and fix logic for parsing rules.
...
Closes #5037
Closes #5011
2015-10-30 16:28:26 -07:00
Brian Ford
53bddec1d2
fix(router): respond to hashchange events
...
Previously if the URL changed in `HashLocation` mode, the router would not pick up the change.
This adds a listener in `HashLocationStrategy` for `hashchange` events to fix the problem.
Closes #5013
2015-10-30 15:04:31 -07:00
Brian Ford
cb2b690471
chore(examples): explain the purpose of these examples
2015-10-30 14:27:47 -07:00
Brian Ford
7d154e38d1
chore(gulp): rename serve/examples to serve/playground
2015-10-30 14:27:47 -07:00
Alex Eagle
78875d57c8
chore(typings): add router_spec to test.typings
...
Closes #4651
2015-10-30 20:28:56 +00:00
Tim Blasi
45b33c5a90
perf(dart/transform): Restrict visibility/mutability of codegen
...
For exported, generated templates, declare with `final` so `dart2js`
knows they will never be reassigned.
For non-exported, generated change detector classes, prefix the
classname with `_` to mark them as internal.
Closes #5009
2015-10-30 17:49:06 +00:00
Gerd Jungbluth
860e88c5be
docs(Http): add type annotations to clarify API
...
IMHO this tiny example is easier to read when some type annotations are added and the parameter names are more concise.
Closes #4614
2015-10-30 05:11:59 +00:00
mgechev
ebd15a7855
chore(http): assert that url is present when creating new Request
...
Closes #4650
2015-10-30 04:52:40 +00:00
Marc Laval
1dc8a0a95d
fix(build): EMFILE error on Windows when executing JS unit tests
...
Fixes #4525
Closes #4796
2015-10-30 04:45:35 +00:00
Stacy Gay
fa44da16c8
refactor(linker): Expose ViewResolver to public api
...
Fixes https://github.com/angular/angular/issues/4780
Closes #4789
2015-10-29 21:21:04 -07:00
vsavkin
56e736439b
fix(analyzer): fix dart analyzer errors
...
Closes #4992
2015-10-30 01:10:36 +00:00
vsavkin
9d58f46ea5
fix(forms): update compose to handle null validators
2015-10-30 01:10:36 +00:00
vsavkin
bb2b961f93
feat(forms): add support for async validations
2015-10-30 01:10:36 +00:00
Tobias Bosch
39626a944d
fix(ng-content): wildcard ng-content has to go last.
...
This was the case before the new compiler landed and should be preserved.
Related to #4598
Closes #5016
2015-10-29 16:51:16 -07:00
Alex Rickabaugh
d1b54d6807
fix(core): Add an error state for ChangeDetectors that is set when bindings or lifecycle events throw exceptions and prevents further detection.
...
- Changes the `alreadyChecked` flag of AbstractChangeDetector to a new `state` flag.
- Changes all checks of alreadyChecked to check that the state is NeverChecked.
- Set state to Errored if an error is thrown during detection.
- Skip change detection for a detector and its children when the state is Errored.
- Add a test to validate this fixes issue #4323 .
Closes #4953
2015-10-29 23:11:02 +00:00
Rob Wormald
c930a533d1
chore(build): add RxJS to typings spec
...
Closes #4893
2015-10-29 23:06:16 +00:00
Rob Wormald
389ed2d941
refactor(async): fix ObservableWrapper.isObservable
...
Makes ObservableWrapper and AsyncPipe work with Observable, Subject, and EventEmitter
2015-10-29 23:06:16 +00:00
Rob Wormald
0378e55fab
chore(package): update RxJS version
2015-10-29 23:06:16 +00:00
Rob Wormald
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
Alex Rickabaugh
72e65d6797
refactor(core): Move LifeCycle functionality into ApplicationRef.
...
BREAKING CHANGE:
Before: constructor(@Inject(LifeCycle) lifecycle) { lifecycle.tick(); }
After: constructor(@Inject(ApplicationRef) appRef) { appRef.tick(); }
Closes #5008
2015-10-29 22:28:30 +00:00
Alex Rickabaugh
ef23fe66a0
docs(forms): Document the rest of the forms module.
...
Closes #4437
2015-10-29 22:26:07 +00:00
Tobias Bosch
993b3d62de
refactor(compiler): don’t rely on external css parser
...
We used to use different external css parsers,
depending on the `DomAdapter`. This lead to
inconsistent behavior and environment specific errors.
Closes #5006
Closes #4993
2015-10-29 15:09:39 -07:00
Alex Eagle
5f2eb3e078
chore(dgeni): clean up legacy typings bundle creation
...
Fixes #4967
Closes #4991
2015-10-29 21:19:59 +00:00
Brandon Roberts
c17c33ca14
docs(router): Updated example for hash location strategy
...
Closes #5010
2015-10-29 20:52:03 +00:00
Tim Blasi
a87c5d989c
fix(dart/transform): Gracefully handle empty .ng_meta.json files
...
Fix the `template_compiler` step to gracefully handle null & empty
.ng_meta.json files.
2015-10-29 11:29:04 -07:00
Vamsi V
7d83959be5
refactor(router): rename "as" to "name" in RouteConfig
...
BREAKING CHANGE:
This is a rename to make routing concepts easier to understand.
Before:
```
@RouteConfig([
{ path: '/', component: MyCmp, as: 'Home' }
])
```
After:
```
@RouteConfig([
{ path: '/', component: MyCmp, name: 'Home' }
])
```
Closes #4622
Closes #4896
2015-10-29 10:52:55 -07:00
Brian Ford
cc37d0a7fa
chore(router): use new provide API in examples
2015-10-29 10:52:54 -07:00
Tim Blasi
6b40293c0a
refactor(dart/transform): Run `ReflectionRemover` after codegen phases
...
Move the `ReflectionRemover` phase to execute after the codegen phases.
2015-10-29 09:53:09 -07:00