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
d38689677c
example(core): update hellow world example to use components without @View
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
Misko Hevery
8e1d2fb325
feat(upgrade): support binding of Ng1 form Ng2
...
Closes #4542
2015-10-06 19:08:56 +00: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
Misko Hevery
09371a3f0b
feat(upgrade): support binding of Ng2 form Ng1
...
Closes #4458
2015-10-05 19:37:31 +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
6ae9686a0d
fix(benchpress): update build step, read and config
...
Closes #4419
2015-10-02 14:42:15 -07: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
Misko Hevery
a5622304de
fix(upgrade): assert correct interleaving of evaluation.
...
Closes #4436
2015-10-01 23:07:43 +00:00
Misko Hevery
074e289e62
chore(upgrade): inline the tests for better readability
2015-10-01 23:07:43 +00: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
Tobias Bosch
5f640c79bb
refactor(compiler_benchmark): simplify by using bootstrap and DI
...
Closes #4356
2015-09-25 04:01:14 +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
Marc Laval
29f75c3c63
chore(saucelabs): MdButton tests time out
...
Closes #4248
2015-09-24 10:22:50 +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
Misko Hevery
db6d289d82
chore(upgrade): infrastructure to allow running upgrade module specs
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
Jeff Cross
3d6e3c2551
fix(http): change http interfaces to types
...
Types were previously not handled correctly by the type definition
generation process, so a couple of things in http had to be changed
to interfaces. This issue has been fixed, so now they're types again.
Closes #4024
2015-09-23 01:06:23 +00:00
Brian Ford
0366f317af
docs(router): improve docs for Location and related classes
...
Closes #4299
2015-09-23 00:47:15 +00:00
Brian Ford
8a2370750a
docs(router): improve documentation for router bindings
2015-09-23 00:47:15 +00:00
Brian Ford
c01f327194
docs(router): improve docs for lifecycle hooks
...
Closes #4300
2015-09-23 00:47:15 +00:00
Brian Ford
5c0a9eff62
docs(router): improve docs for RouteDefinition classes
2015-09-23 00:47:15 +00:00
Jeff Cross
9c4ab2b2b8
docs(http): fix missing variable from BaseRequestOptions example
2015-09-22 17:21:05 -07:00
Jeff Cross
5ea9c1e7fd
docs(http): add docs and examples for BaseResponseOptions
...
Closes #4324
2015-09-23 00:16:53 +00:00
Jeff Cross
662a585fc2
docs(http): add docs and examples for ResponseOptions
2015-09-23 00:16:53 +00:00
Jeff Cross
ae3713ef95
docs(http): add docs and examples for BaseRequestOptions
2015-09-23 00:16:53 +00:00
Jeff Cross
707e6f7671
docs(http): improve docs and add example for RequestOptions
2015-09-23 00:16:53 +00:00
Brian Ford
a554f1c45d
chore(router): do not export Url class
...
Closes #4304
2015-09-22 23:51:19 +00:00
Brian Ford
41b019f5f8
refactor(router): do not export RootRouter
...
BREAKING CHANGE:
It's unlikely that any apps were explicitly referencing `RootRouter`, but if they were they should
prefer to use the `routerBindings` helper or the `ROUTER_BINDINGS` const exported from `angular2/router`
2015-09-22 23:51:19 +00:00
Misko Hevery
af2cd4d6f3
fix(api): align dart/js APIs
2015-09-22 23:11:40 +00:00
Alex Eagle
577ee3744a
fix(bug): reflect Dart interfaces from superclass as well
...
fixes #4221
Closes #4222
2015-09-22 22:31:07 +00:00
vsavkin
fd3eae9623
docs(di): add missing docs
...
Closes #4302
2015-09-22 21:38:33 +00:00
vsavkin
238dfc1e17
cleanup(di): make KeyRegistry private
2015-09-22 21:38:33 +00:00
vsavkin
29b56ceb40
cleanup(di): make DependencyProvider private
2015-09-22 21:38:33 +00:00
Tobias Bosch
cc0c30484f
refactor(compiler): cleanup and preparation for integration
...
- Rename `DirectiveMetadata` into `CompileDirectiveMetadata`, merge
with `NormalizedDirectiveMetadata` and remove `ChangeDetectionMetadata`
- Store change detector factories not as array but
directly at the `CompiledTemplate` or the embedded template
to make instantiation easier later on
- Already analyze variable values and map them
to `Directive.exportAs`
- Keep the directive sort order as specified in the
`@View()` annotation
- Allow to clear the runtime cache in `StyleCompiler`
and `TemplateCompiler`
- Ignore `script` elements to match the semantics of the
current compiler
- Make all components dynamically loadable and remove
the previously introduced property `@Component#dynamicLoadable`
for now until we find a better option to configure this
- Don’t allow to specify bindings in `@View#directives` and `@View#pipes` as this was never supported by the transformer (see below for the breaking change)
BREAKING CHANGE:
- don't support DI bindings in `@View#directives` and `@View@pipes` any more in preparation of integrating the new compiler. Use `@Directive#bindings` to reexport directives under a different token instead.
Part of #3605
Closes #4314
2015-09-22 12:50:03 -07:00
mgechev
f600d88209
docs: fix typo
...
Closes #4306
2015-09-22 13:32:43 +00:00
mgechev
662ff47627
docs: fix typos
...
Closes #4308
2015-09-22 12:15:49 +00:00
Jeff Cross
da6def3772
docs(http): add documentation for Request
...
Closes #4238
2015-09-21 22:20:58 +00:00
Jeff Cross
c868f40bef
docs(http): improve docs for Headers
2015-09-21 22:20:58 +00:00
Jeff Cross
17af481134
docs(http): add docs and examples for JSONP_BINDINGS
2015-09-21 22:20:58 +00:00
Jeff Cross
b2695e46e1
docs(http): add docs and examples for HTTP_BINDINGS
2015-09-21 22:20:58 +00:00
vsavkin
b0effe8e27
docs(di): add docs to Injector
...
Closes #4254
2015-09-21 21:55:04 +00:00
vsavkin
794e3870c5
docs(di): make TypeLiteral private
...
Closes #4290
2015-09-21 20:44:49 +00:00
vsavkin
95c8eef97a
docs(di): add docs to OpaqueToken
2015-09-21 20:44:49 +00:00
vsavkin
b8c4d3e7fb
docs(di): add docs to Key
2015-09-21 20:44:49 +00:00
Brian Ford
aed34e1f82
feat(angular_1_router): add ngRouteShim module
...
This module attempts to provide a shim for `$routeProvider` to aid in
migrating from ngRoute to Component Router.
Closes #4266
2015-09-21 12:13:07 -07:00
Brian Ford
5205a9e65f
refactor(angular_1_router): use directives for route targets
...
BREAKING CHANGE:
Previously, route configuration took a controller constructor function as the value of
`component` in a route definition:
```
$route.config([
{ route: '/', component: MyController }
])
```
Based on the name of the controller, we used to use a componentMapper service to
determine what template to pair with each controller, how to bind the instance to
the $scope.
To make the 1.x router more semantically alligned with Angular 2, we now route to a directive.
Thus a route configuration takes a normalized directive name:
```
$route.config([
{ route: '/', component: 'myDirective' }
])
```
BREAKING CHANGE:
In order to avoid name collisions, lifecycle hooks are now prefixed with `$`. Before:
```
MyController.prototype.onActivate = ...
```
After:
```
MyController.prototype.$onActivate = ...
```
Same for `$canActivate` (which now lives on the directive factory function),
`$canDeactivate`, `$canReuse`, and `$onDeactivate` hooks.
2015-09-21 12:13:07 -07:00
Brian Ford
6e0ca7f39a
fix(router): use StringWrapper.startsWith
2015-09-21 12:13:07 -07:00
Brian Ford
43f97a951c
refactor(router): move assertComponentExists into facade
...
This is to make way for a refactor to the ng 1.x router directives,
which will use strings rather than controller functions in route configs.
2015-09-21 11:17:19 -07:00
Brian Ford
a443ea64a1
refactor(router): remove unused dependencies in ngOutlet
2015-09-21 11:17:19 -07:00
vsavkin
c2a60f1624
feat(core): add support for @ContentChild and @ViewChild
...
Closes #4251
2015-09-20 01:45:09 +00:00
vsavkin
2e9de0b169
feat(core): add sugar to use ContentChildren and ViewChildren as prop decorators
...
Closes #4237
2015-09-20 00:43:04 +00:00
vsavkin
5dbe292615
feat(core): add support for ContentChildren and ViewChildren
2015-09-20 00:43:04 +00:00
Rado Kirov
5809a02624
docs(query): edit and extend query and view query docs.
2015-09-18 18:27:42 -07:00
Brian Yarger
3525d8a394
fix(http): throw if url is not string or Request
...
Closes #4245
Closes #4257
2015-09-18 23:33:17 +00:00
Alfonso Presa
283415beab
fix(sfx): Include ngHttp in SFX bundle
...
fixes : #3934
Closes #3933
2015-09-18 09:07:31 -07:00
Marc Laval
390aacd442
fix(facade): workaround for lack of Symbol.iterator in es6-shim
...
Closes #4219
Fixes #4216
2015-09-18 09:46:13 +02:00
Pascal Precht
5a3ce87915
chore(http): remove unused properties from Request
...
This removes properties mentioned in #3339
Closes #3339
Closes #3823
2015-09-17 17:16:47 -07:00