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
Brandon Roberts
c17c33ca14
docs(router): Updated example for hash location strategy
...
Closes #5010
2015-10-29 20:52:03 +00: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
mlaval
e37799a2a5
fix(test): Android browser does not support calc() a CSS unit value
...
Closes #5001
2015-10-29 16:32:21 +00:00
mlaval
c4964e7c9b
fix(test): "integration tests svg should support svg elements" fails in non-Chrome browsers
...
Fixes #4987
Closes #5000
2015-10-29 16:03:15 +00:00
Pawel Kozlowski
edd4b93589
refactor(router): use relative imports
...
Closes #4940
2015-10-29 04:24:13 +00:00
J. Andrew Brassington
97c60ed3f3
docs(web_workers): Correct typo
...
Typo in code block on line 229 : "angukar2" -> "angular2"
Closes #4286
2015-10-29 04:09:19 +00:00
Pascal Precht
28be0a59cf
docs(application_common): fixes typo and improves docs for bootstrap
...
Closes #4312
2015-10-29 04:04:10 +00:00
Jason Teplitz
8485ef9230
fix(WebWorker): Don't send messages when the buffer is empty
...
Closes #4138
2015-10-29 04:00:04 +00:00
Trotyl Yu
1de2d29f96
typo(directives): Fixed the mistake of leading number
...
The leading number with a dot and space in the Markdown will be compiled to `ol > li`.
The `4 and 6. ` in the docs mistakenly add a new line before the `6. ` cause a misunderstand by the markdown engine.
Closes #4664
2015-10-29 03:39:44 +00:00
Alex Rickabaugh
0abd218eed
docs(core): Document NgFor.
...
Closes #4533
2015-10-29 03:26:42 +00:00
mgechev
7f806f7687
refactor: remove useless imports
...
Closes #4426
2015-10-29 02:49:08 +00:00
Victor Berchet
7677dc976e
refactor(Pipes): integrate review feedback
...
Closes #4947
2015-10-29 00:50:52 +00:00
Victor Berchet
e7f9924b18
style: clang format the code
2015-10-29 00:50:52 +00:00
Victor Berchet
40586152d1
test(Pipes): assert Date, Json & Slice are non pure
2015-10-29 00:50:52 +00:00
Victor Berchet
2f1f83a186
fix(Pipes): mark date & slice as non-pure
2015-10-29 00:50:52 +00:00
Victor Berchet
7ba426c3e6
fix(Pipe): pure is an optional argument
2015-10-29 00:50:52 +00:00
Sebastián Duque
fc016b59dc
fix(JsonPipe): marks json pipe as not pure Marked json pipe as not pure so that it runs all the time, reflecting changes on the object.
...
Closes #4821
2015-10-29 00:50:51 +00:00
vsavkin
e1337dc325
cleanup(forms): minor cleanup
...
Closes #4778
2015-10-29 00:02:01 +00:00
vsavkin
534db7fe2b
cleanup(forms): marks abstract classes as abstract
2015-10-29 00:02:01 +00:00
vsavkin
547e011abe
feat(forms): add support for Validator
...
Currently, the only way for a directive to export a validator is by providing a function. This makes it ackward to write validators that depend on directive inputs. In addition to supporting functions as validators, classes implementing the Validator interface are supported too.
2015-10-29 00:02:01 +00:00
Eric Mendes Dantas
9c63a471bb
docs(http): use http.request(FOO) instead of http(FOO)
...
Closes #4641
2015-10-28 16:22:32 -07:00
Alex Eagle
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
Alex Eagle
44188b9072
chore(typings): mark underscore-prefix members @internal
...
I still haven't made a tslint check for this, so new occurrences leaked in.
See https://github.com/angular/angular/issues/4645
Closes #4986
2015-10-28 21:27:34 +00:00
mgechev
e3c9397717
docs(element_injector): fix comment for ElementInjectorDynamicStrategy
...
Closes #4414
2015-10-28 20:29:05 +00:00
Pawel Kozlowski
5c48236f61
fix(lang): avoid infinite loop when calling assert()
...
The current code doesn't function properly:
- assert are never activated
- even if activated would result in infinite loop
Since the code is broken and blocks other use-cases
this commit turns assert into noop. A proper solution
for asserts will be part of #2830
Fixes #4981
Closes #4983
2015-10-28 19:12:28 +00:00
Alex Eagle
c90e1920f5
chore(tslint): disallow variable names that look like keywords.
...
We've had issues such as the one I documented: https://github.com/Microsoft/TypeScript/issues/5187
This tslint check prevents this happening again.
This change also updates to the newest tslint which gets typings from npm.
Closes #4970
2015-10-28 18:31:21 +00:00
Tim Blasi
25ddd8718d
feat(forms): Export NumberValueAccessor
...
Export `NumberValueAccessor` from `forms/directives.ts`
2015-10-28 10:36:18 -07:00
Jesús Rodríguez Rodríguez
3ed9796425
docs(SlicePipe): fix ng-for example
...
Closes #4975
2015-10-28 15:54:47 +00:00
Tim Blasi
c91fc49d01
test(dart/transform): Update tests for new codegen
...
Update unit tests for `bind_generator` responsibility move.
2015-10-28 08:18:56 -07:00
vsavkin
f9963d3d21
refactor(di): minor cleanup
2015-10-28 07:32:40 -07:00
mgechev
6514b8ced0
fix(di): allow dependencies as flat array
2015-10-28 07:32:40 -07:00
Martin Probst
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
Yegor Jbanov
edfa35b11d
fix(facades): reduce node count by 1 in assertionsEnabled
2015-10-27 23:14:52 -07:00
Eric Mendes Dantas
5fc28e65ef
docs(provider): fix formatting
...
Closes #4957
2015-10-28 01:42:10 +00:00
Victor Berchet
1316c3e391
fix(ChangeDetector): support for NaN
...
Closes #4853
2015-10-28 00:44:06 +00:00
vsavkin
758062807a
feat(forms): support adding validators to ControlGroup via template
...
Closes #4954
2015-10-28 00:13:20 +00:00
vsavkin
f98faf0702
refactor(forms): make Validators.group and Validators.array private
2015-10-28 00:13:20 +00:00
Victor Berchet
42ea31b993
docs(QueryMetadata): fix wrong selectors and improve syntax highlighting
...
closes #4544
Closes #4958
2015-10-27 23:39:58 +00:00
mgechev
fdbb505a8a
docs(di): fix SelfMetadata example
...
closes #4580
2015-10-27 23:39:58 +00:00
Victor Berchet
61e514bf77
docs(Http): fix parameter name
...
closes #4613
2015-10-27 23:39:58 +00:00
Olivier Combe
7478105178
docs(PipeTransform): added pure parameter
...
closes #4667
The documentation was outdated since alpha 38 when the `pure` parameter
was added to the `PipeMetadata`.
2015-10-27 23:39:58 +00:00
Tobias Bosch
540b8c2a1a
fix(renderer): support `xlink:href` attribute in svg
...
Closes #4956
2015-10-27 16:22:32 -07:00
gdi2290
dc6a066fed
refactor(application): rename Binding into Provider
...
while creating the server version I noticed bindings are still
mentioned
Closes #4951
2015-10-27 22:39:22 +00:00