Brandon Roberts
075011f2fe
fix(docs): Updated docs for default router location strategy
...
Closes #4517
2015-10-09 02:57:10 +00:00
vsavkin
1100c9b1e3
fix(web-workers): fix bindings
2015-10-08 16:42:34 -07:00
vsavkin
f3ab527688
resolve rebase conflicts
2015-10-08 13:59:09 -07:00
vsavkin
bba0248989
fix(core): remove NgZone_ and use NgZone instead
2015-10-08 13:55:26 -07:00
vsavkin
14fa00791e
fix(analyzer): fix dart analyzer errors
2015-10-08 13:54:44 -07:00
vsavkin
d60c7a9118
fix(tests): fixes public api spec
2015-10-08 13:54:44 -07:00
vsavkin
d63f3c123e
fix benchmarks
2015-10-08 13:54:44 -07:00
vsavkin
8b725c77fd
fix(tests): fix tests
2015-10-08 13:54:44 -07:00
Alex Eagle
5458036de7
fix(typings): update test.typings for abstract superclasses
2015-10-08 13:54:43 -07:00
Alex Eagle
6075509f26
chore(typing): extract abstract superclasses to replace @private constructors
2015-10-08 13:54:43 -07:00
Brian Ford
ee32b1bc37
feat(router): allow async routes to be defined with "loader"
2015-10-08 12:29:14 -07:00
Tobias Bosch
6d4bd5d901
fix(render): recurse into components/embedded templates not until all elements in a view have been visited
...
Fixes #4551
Closes #4601
2015-10-08 11:43:21 -07:00
Eric Mendes Dantas
21b53c3143
docs(http) remove .toRx() from http calls
...
Closes #4578
2015-10-08 17:41:15 +00:00
Yegor Jbanov
04b3dee667
fix(css): when compiling CSS, leave absolute imports alone
...
Closes #4592
2015-10-08 16:39:32 +00:00
Victor Berchet
6b00b60488
fix(XhrBackend): setRequestHeader takes a string arg
...
Closes #4597
2015-10-08 15:59:10 +00:00
Julie Ralph
af1119063c
chore(ci): update Protractor version, remove custom waits
...
The latest Protractor version supports waiting for Angular2 applications,
so remove custom waiting logic.
Closes #3829
2015-10-07 13:08:58 -07:00
Victor Berchet
aee176115b
refactor(ListWrapper): drop forEach and removeLast
...
Closes #4584
2015-10-07 17:17:31 +00:00
Victor Berchet
4ed642f921
refactor(AppRootUrl): simplify the code
...
Closes #4563
2015-10-07 15:20:32 +00:00
Pawel Kozlowski
a7b2ab771e
docs(NgStyle): update docs, add examples
...
Closes #4519
2015-10-07 13:24:48 +00:00
Victor Berchet
a0277f1b3a
refactor: add missing types for ts2dart
...
Closes #4568
2015-10-07 06:39:14 +00:00
Victor Berchet
aaa215514b
refactor(ListWrapper): get ride of ListWrapper.map
2015-10-07 06:39:14 +00:00
Victor Berchet
b6537ad609
refactor(ListWrapper): get ride of ListWrapper.join
2015-10-07 06:39:14 +00:00
Igor Minar
62e14dc529
build(bundle): fix angular2/test_lib bundle to reexport test_lib rather than test
...
Closes #4556
2015-10-07 04:49:46 +00:00
Igor Minar
15ab6f6ea8
fix(location): improve the 'No base href set' error message
2015-10-06 20:59:02 -07:00
vsavkin
dea6a4593b
cleanup(core): making @View optional
...
Closes #4566
2015-10-07 02:16:42 +00:00
vsavkin
bd31b01690
feat(core): add syntax sugar to make @View optional
2015-10-07 02:16:42 +00:00
Alex Eagle
f7aa890ade
chore(docs): rename @private to @internal
...
The latter is understood by TypeScript's --stripInternal option, so this lets us
rely more on the tooling provided by typescript team.
2015-10-06 17:08:41 -07:00
Rob Wormald
4a36fd8203
fix(core): make .toRx() return Subject
...
this was broken in the original great RxNext migration.
fixes #4521
Closes #4540
2015-10-06 23:27:35 +00:00
Tim Blasi
a4869c874b
build(dart): Remove unused Dart benchmarks
2015-10-06 14:11:03 -07:00
Igor Minar
4ebb1a9096
fix: add test_lib.d.ts to type definitions in generated package.json
2015-10-06 10:12:53 -07:00
Michał Gołębiowski
9679fc94f6
fix(shims): Don't rely on prefixed requestAnimationFrame
...
The `ms` & `moz` prefixes are not needed. `ms` was never available in a public
IE release (IE 10 has an unprefixed version) and Firefox has unprefixed
rAF since v24 - current version is 41. Even more, Firefox versions below 22
don't have cancelAnimationFrame so it's better to not use the prefixed version
at all to avoid surprises.
The `o` prefix is also useless - Opera Presto never had rAF and the
Chromium-based Opera doesn't use the `o` prefix.
Also, switched from `new Date().getTime()` to `Date.now()` as it's supported
everywhere (even in Android 2.3) except IE<9 and it avoids a useless date
object construction.
See http://caniuse.com/#feat=requestanimationframe for more info.
Refs 4f56a01b3b
Closes #4394
2015-10-06 09:38:49 -07:00
Alex Eagle
6093e28b61
fix(typings): repair broken typechecks
...
We had the typechecker disabled by accident, and many problems snuck in
Fixes #4507
Closes #4508
2015-10-06 13:28:17 +00:00
Tobias Bosch
0b3e4fa090
refactor(core): move `ViewEncapsulation` and `ViewType` to the right places
...
Closes #4526
2015-10-05 11:22:21 -07:00
Tobias Bosch
0299d4af00
fix(core): keep styles for `ViewEncapsulation.Native` isolated per component
...
BREAKING CHANGE:
- `Renderer.registerComponent` now takes an additional argument.
Fixes #4513
Closes #4524
2015-10-05 10:34:42 -07:00
Tobias Bosch
a9aef8e5e6
fix(core): set `ViewEncapsulation.Emulated` as the default again
...
Fixes #4494
2015-10-05 10:33:58 -07:00
Tobias Bosch
6fe8b85295
fix(render): keep bindings of components in content and view in the right order
...
Bindings in the component view have to be first, before
bindings of components in the light dom (i.e. have the same
order as used in the `ViewManagerUtils.createView()` method.
Fixes #4522
Closes #4523
2015-10-05 10:10:47 -07:00
Pawel Kozlowski
649d310c31
chore: remove traceur from package.json published to npm
...
Closes #4498
2015-10-05 02:47:49 +00:00
Igor Minar
150cc22532
fix(http): add missing semicolon
2015-10-03 10:05:11 -07:00
Alex Eagle
208f3d4c65
fix(typings): repair broken type-checking for StringMap
...
Note that the previous type of StringMap was overly permissive and didn't catch errors.
Also we have to explicitly type empty objects, which is explained here:
https://github.com/Microsoft/TypeScript/issues/5089
Closes #4487
2015-10-03 01:09:42 +00:00
Alex Eagle
7c4199cd1c
chore(typings): remove StringMap
...
This was a poorly typed attempt to mimic TypeScript's index signatures,
which we can use instead.
This eliminates a very strange type that we were exposing to users, but
not re-exporting through our public API.
Fixes #4483
2015-10-03 01:09:42 +00:00
Rob Wormald
01fb06a377
chore(http): Use Observables in Http
...
- Remove ObservableWrapper/EventEmitter from Http.
- Temporarily use complete Rx build w/ all operators.
2015-10-02 17:20:25 -07:00
vsavkin
c9901c5fe0
feat(core): support properties and events in addition to inputs and outputs to make transition easier
...
Closes #4482
2015-10-02 23:23:15 +00:00
Marc Laval
b44c13bc46
fix(compiler): const is not supported in IE9 and IE10
...
Closes #4465
2015-10-02 21:49:44 +00:00
Tobias Bosch
4342a1eb7b
refactor(core): move DI bindings of compiler into core/compiler/compiler.ts
...
Closes #4470
2015-10-02 13:39:14 -07:00
Tobias Bosch
13161ae5aa
refactor(core): move APP_ID from render/dom/dom_tokens into application_tokens
2015-10-02 13:38:52 -07:00
Tobias Bosch
6b5d345a2b
refactor(core): adjust imports for move files to the right place
...
- render/xhr_* -> compiler/xhr_*
- render/event_config -> linker/event_config
- render/dom/schema -> compiler/schema
- render/dom/compiler/* -> compiler/*
- render/dom/view/shared_styles_host -> render/dom/shared_styles_host
2015-10-02 13:38:51 -07:00
Tobias Bosch
2450a3c5b0
refactor(core): move files to the right place
...
- render/xhr_* -> compiler/xhr_*
- render/event_config -> linker/event_config
- render/dom/schema -> compiler/schema
- render/dom/compiler/* -> compiler/*
- render/dom/view/shared_styles_host -> render/dom/shared_styles_host
- services/url_resolver -> compiler/url_resolver
- services/app_root_urlo -> compiler/app_root_url
2015-10-02 13:38:51 -07:00
mgechev
34518f0f2d
feat(http): Add support for strings as http method names
...
Closes #4331
2015-10-02 11:33:49 -07:00
Igor Minar
a251df9df4
docs: api docs for Renderer and all the related apis
...
Closes #4459
2015-10-02 17:05:48 +00:00
Victor Berchet
a110ce95dc
doc(LifecycleHooks): update API doc
...
Closes #4357
2015-10-02 16:44:48 +00:00
Tobias Bosch
e8e57cdd73
refactor(core): adjust imports for rename angular2/src/compiler -> angular2/src/core/compiler
2015-10-02 08:59:43 -07:00
Tobias Bosch
aa3d94149f
refactor(core): rename angular2/src/compiler -> angular2/src/core/compiler
2015-10-02 08:42:12 -07:00
Tobias Bosch
6248a5e846
refactor(core): move core/compiler to core/linker, adjust imports
2015-10-02 08:42:12 -07:00
Tobias Bosch
9f4fa1ab0a
refactor(core): move core/compiler to core/linker
2015-10-02 08:42:11 -07:00
Tobias Bosch
d21c7bdf90
refactor(compiler): remove unused code
...
BREAKING CHANGE:
- Removes `ChangeDetection`, use a binding for `ChangeDetectorGenConfig` instead
to configure change detection.
- `RenderElementRef.renderBoundElementIndex` was renamed to `RenderElementRef.boundElementIndex`.
- Removes `ViewLoader`, use `XHRImpl` instead.
2015-10-01 22:27:41 -07:00
Tobias Bosch
76247b7097
refactor(compiler): use the new compiler everywhere
...
Closes #3605
BREAKING CHANGE:
- we don't mark an element as bound any more if it only contains text bindings
E.g. <div>{{hello}}</div>
This changes the indices when using `DebugElement.componentViewChildren` / `DebugElement.children`.
- `@Directive.compileChildren` was removed,
`ng-non-bindable` is now builtin and not a directive any more
- angular no more adds the `ng-binding` class to elements with bindings
- directives are now ordered as they are listed in the View.directives regarding change detection.
Previously they had an undefined order.
- the `Renderer` interface has new methods `createProtoView` and `registerComponentTemplate`. See `DomRenderer` for default implementations.
- reprojection with `ng-content` is now all or nothing per `ng-content` element
- angular2 transformer can't be used in tests that modify directive metadata.
Use `angular2/src/transform/inliner_for_test` transformer instead.
2015-10-01 18:48:27 -07:00
Yegor Jbanov
841f8789fd
refactor(transformer): precompile stylesheets
...
Part of #3605
2015-10-01 18:48:27 -07:00
vsavkin
617acf4cd6
docs(core): add docs to HostBinding and HostListener
2015-10-01 15:47:51 -07:00
Pawel Kozlowski
a87ebb28e2
docs(CORE_DIRECTIVES): improve docs for CORE_DIRECTIVES
...
Closes #4310
2015-10-01 08:49:46 +00:00
vsavkin
adbfd29fd7
feat(core): renames Property into Input and Event into Output
...
BREACKING CHANGE:
Before: @Directive({properties: ['one'], events: ['two']})
After: @Directive({inputs: ['one'], outputs: ['two']})
Before: @Component({properties: ['one'], events: ['two']})
After: @Componet({inputs: ['one'], outputs: ['two']})
Before: class A {@Property() one; @Event() two;}
After: class A {@Input() one; @Output() two;}
2015-10-01 04:36:23 +00:00
Marc Laval
33593cf8a2
fix(build): Use Angular's testability API to wait for end of e2e tests
...
Closes #3911
2015-10-01 03:41:10 +00:00
vsavkin
00a4b2e28f
feat(forms): make NgControl -> NgValueAccessor dependency unidirectional
...
Closes #4421
2015-10-01 01:47:18 +00:00
vsavkin
7b2d8fce07
refactor(forms): extract NgControlStatus
2015-10-01 01:47:18 +00:00
vsavkin
cec4b36d9b
fix(change_detection): _throwError should not mask the original exception
2015-09-30 18:18:28 -07:00
Marc Laval
eafa482052
chore(saucelabs): add latest Safaris
...
Closes #4411
2015-09-30 21:38:04 +00:00
vsavkin
3aa204791b
feat(query): make QueryList notify on changes via an observable
...
BREAKING CHANGE:
Before: query.onChange(() => ...);
After: query.changes.subscribe((iterable) => {});
Closes #4395
2015-09-30 15:45:16 +00:00
Alex Eagle
9b7378d132
chore(typings): remove traceur-runtime.d.ts
...
fixes #4297
Closes #4415
2015-09-30 00:07:16 +00:00
Alex Eagle
b4fe590b2d
chore(ts): fix TODOs that were pending on 1.6 upgrade
...
Closes #4377
2015-09-29 03:23:25 +00:00
Tobias Bosch
8ff65a30c7
refactor(compiler): don’t require `id` in metadata and use `appId`
...
The output of the compiler has to be the same
given the same input. Requiring a unique id for
every type already during compilation makes it
hard to parallelize compilation.
Part of #3605
Closes #4397
2015-09-28 19:47:24 -07:00
Alex Rickabaugh
a7b8624b55
docs(forms): Documentation and examples for Control, ControlGroup, and ControlArray.
...
Closes #4398
2015-09-29 00:08:21 +00:00
Alex Rickabaugh
7ae74cf91d
docs(forms): FORM_BINDINGS and FORM_DIRECTIVES
2015-09-29 00:08:21 +00:00
mgechev
6a6396963f
refactor(http): remove useless constant
...
Closes #4364
2015-09-29 00:06:27 +00:00
mgechev
4319563bba
docs(http): add language annotations and fix method value to enum
...
Closes #4348
2015-09-29 00:03:00 +00:00
cexbrayat
e2f5d87ff7
fix(services): export title service
...
Signed-off-by: cexbrayat <cedric@ninja-squad.com>
Closes #4271
2015-09-28 23:23:40 +00:00
Alex Rickabaugh
7714d6a6eb
fix(forms): avoid issues with nulls checking on validation status and other form states.
...
Closes #4338
2015-09-28 21:01:51 +00:00
Rob Wormald
a88e6f3106
refactor(http): use Observables in Http backends
...
BREAKING CHANGE: Http now returns Rx Observables directly, so calling .toRx() is no longer necessary. Additionally, Http calls are now cold, so backend requests will not fire unless .subscribe() is called.
closes #4043 and closes #2974
Closes #4376
2015-09-27 22:15:30 +00:00
Igor Minar
af9f916a9c
docs(compiler): compiler/view related api docs
...
Closes #4268
2015-09-25 23:03:24 +00:00
Igor Minar
d348e5051f
docs(Type): improve api docs
2015-09-25 23:03:24 +00:00
Igor Minar
7771ef4873
refactor: rename all "atIndex" parameters to just "index"
...
This makes it easier to word the documentation of the signature.
2015-09-25 23:03:24 +00:00
Igor Minar
7ee295ad94
docs(compiler): compiler related api docs
2015-09-25 23:03:24 +00:00
Victor Berchet
0319417a1b
feat(Binding): improve errors
...
fix #4358
Closes #4360
2015-09-25 22:05:36 +00:00
vsavkin
5bf6a3af15
chore(typescript): fixes dart failures and linter
...
Closes #4359
2015-09-25 20:15:55 +00:00
Alex Eagle
7a53f82516
chore(typescript 1.6 upgrade): fix build.js and docs
2015-09-25 20:15:55 +00:00
Tobias Bosch
1cf45757cd
feat(render): add generic view factory based on the template commands
...
Part of #3605
Closes #4367
2015-09-25 11:56:58 -07:00
Tobias Bosch
0ed6fc4f6b
fix(compiler): minor cleanups and fixes
...
Part of #3605
2015-09-25 11:27:39 -07:00
Marc Laval
9c9769047d
fix(test): StyleCompiler tests failing in Android browsers
...
Closes #4351
2015-09-25 07:34:17 +00:00
Victor Berchet
0a88e7b736
feat(change detection): export SimpleChange
...
Closes #4337
2015-09-25 02:33:41 +00:00
Alex Rickabaugh
711ab6d573
docs(forms): Add documentation and live examples for NgForm, NgFormControl, NgFormModel, and NgModel.
...
Closes #4343
2015-09-24 22:22:03 +00:00
Brian Ford
4e5c663b02
docs(di): fix incorrectly fomatted code blocks
2015-09-24 14:34:04 -07:00
vsavkin
4efc4a5520
feat(query): remove the 3-query-per-element limit
...
Closes #4336
2015-09-24 21:09:02 +00:00
vsavkin
ce6b364dc5
docs(core): add docs to Property and Event
2015-09-24 13:46:29 -07:00
vsavkin
225eab8f25
cleanup(change_detection): make Locals private
...
Closes #4321
2015-09-24 18:10:47 +00:00
vsavkin
7c2c1a8e03
docs(change_detection): add docs to ChangeDetectorRef
2015-09-24 18:10:47 +00:00
vsavkin
9d2d674ef8
docs(change_detection): add docs to change detection exceptions
2015-09-24 18:10:47 +00:00
Tobias Bosch
7470ad1bd1
refactor(compiler): various cleanups
...
- use `$implicit` variable value correctly
- handle `ng-non-bindable` correctly
- add some more assertions to `TemplateCompiler`
- make `CompiledTemplate` const
- fix default value for `@Directive.moduleId`
- add new compiler to application bindings
BREAKING CHANGE:
- `Compiler.compileInHost` and all methods of `DynamicComponentLoader` don’t take `Binding` any more, only `Type`s. This is in preparation for the new compiler which does not support this.
Part of #3605
Closes #4346
2015-09-24 10:56:29 -07:00
Marc Laval
bffa2cb59b
feat(animate): cross-browser compatibility
...
Closes #4243
2015-09-24 10:24:40 +02:00
Marc Laval
4f56a01b3b
fix(shims): add requestAnimationFrame shim for IE9 and Android
...
Fixes #4209
2015-09-24 10:23:58 +02:00
Igor Minar
ea15d6646b
docs(examples): add empty examples directory for api docs examples
...
This is a place for api docs examples hand written in an idiomatic way.
Closes #4341
2015-09-23 21:30:17 +00:00
Misko Hevery
8427863bab
feat(upgrade): Allow including ng2/1 components in ng1/2
...
Closes #3539
2015-09-23 05:02:43 +00:00
Brian Ford
ec68074e69
docs(router): improve docs for Instruction and related classes
...
Closes #4303
2015-09-22 21:27:47 -07:00