Tobias Bosch
1b15170c89
refactor(core): simplify decorators
...
Every decorator now is made of the following:
- a function that can be used
as a decorator or as a constructor. This function
also can be used for `instanceof` checks.
- a type for this function (callable and newable)
- a type that describes the shape of the data
that the user needs to pass to the decorator
as well as the instance of the metadata
The docs for decorators live at the followig places
so that IDEs can discover them correctly:
- General description of the decorator is placed on the
`...Decorator` interface on the callable function
definition
- Property descriptions are placed on the interface
that describes the metadata produces by the decorator
2016-09-12 22:47:54 -07:00
Kara
26d1423ae9
docs(forms): update docs for NgForm ( #11547 )
2016-09-12 17:01:04 -07:00
Kara
61aad7925f
fix(forms): fix resetting radios ( #11546 )
...
Closes #11516
2016-09-12 15:15:58 -07:00
Kara
79055f727b
fix(forms): support dots in control names in contains ( #11542 )
...
Closes #11535
2016-09-12 15:15:50 -07:00
Igor Minar
cc7780adf7
build(npm): update to rxjs@5.0.0-beta.12
...
Fixes #11300
2016-09-12 12:05:00 -07:00
Misko Hevery
051a6ebe12
feat(zone): upgrade to zone.js@0.6.21
2016-09-12 11:48:24 -07:00
Kara
c9513b713a
docs(forms): add example apps for ngModelGroup ( #11525 )
2016-09-12 11:45:48 -07:00
Kara
66e38b6754
docs(forms): add example apps for ngModel ( #11524 )
2016-09-12 11:27:29 -07:00
Victor Berchet
7b82877ee5
fix(Localization): BCP47 uses hyphens as separator ( #11514 )
...
https://tools.ietf.org/html/bcp47
2016-09-12 11:27:15 -07:00
Kara
c9ad5e46d6
docs(forms): add example app for formArrayName ( #11512 )
2016-09-12 11:26:43 -07:00
Kara
2cdd051109
docs(forms): update example for formGroupName ( #11510 )
2016-09-12 11:26:18 -07:00
Kara
57cb82052b
docs(forms): add example app for formControlDirective ( #11508 )
2016-09-12 11:24:09 -07:00
Kara Erickson
dd8204a655
docs(forms): update example for formGroupDirective
2016-09-12 11:22:51 -07:00
Kara Erickson
cdda4082de
docs(forms): add example app for formControlName
2016-09-12 11:22:51 -07:00
vsavkin
a343a8e1c2
docs(router): fix typos
2016-09-12 09:47:44 -07:00
vsavkin
a41c1bbdf4
docs(router): update docs of the router lifecycle interfaces
2016-09-10 16:55:14 -07:00
vsavkin
f2c6157e74
docs(router): update docs of RouteModule and RouterTestingModule
2016-09-10 16:55:13 -07:00
vsavkin
32564ece27
docs(router): update RouterState docs
2016-09-10 16:55:13 -07:00
vsavkin
3eee62fa71
docs(router): update router configuration docs
2016-09-10 16:55:13 -07:00
vsavkin
617475005f
docs(router): update docs of the Router service
2016-09-10 16:55:13 -07:00
vsavkin
0822066175
docs(router): update docs for router directives
2016-09-10 16:55:13 -07:00
Victor Berchet
82f30e09f0
refactor(common): cleanup directive tests
2016-09-09 14:30:18 -07:00
Victor Berchet
c649a5c5ab
refactor(common): cleanup directives
2016-09-09 14:30:18 -07:00
Kara
53f0c2206d
fix(forms): rename validator change fn due to conflict ( #11492 )
...
Closes #11479
2016-09-09 14:09:11 -07:00
Victor Berchet
0bce3907b8
fix(tests): add missing import ( #11490 )
2016-09-09 14:08:47 -07:00
Victor Berchet
2170379251
refactor(common): cleanup, strip deprecated doc ( #11469 )
2016-09-09 12:05:06 -07:00
Victor Berchet
5a4e46db20
refactor(tests): simplify code ( #11485 )
2016-09-09 12:04:38 -07:00
Victor Berchet
f5d44a42c9
refactor(NgClass): cleanup, readability ( #11467 )
2016-09-09 12:03:51 -07:00
Kara
673de004d2
fix(forms): clear errors on disable ( #11463 )
...
Closes #11287
2016-09-09 12:00:38 -07:00
Tobias Bosch
f386cb4ba9
Fix benchpress for newest protractor and selenium ( #11451 )
...
* chore: update protractor and selenium-webdriver packages
As `karma-jasmine` has a peer dependency on `jasmine-core@2.3`, but `jasmine` and `protractor` are using `jasmine-core@2.4` we need to add `jasmine-core@2.3` explicitly. Previously, the peer dependency was
satisfied by accident because npm deduped the dependency
for `jasmine-core@2.3` as top level dependency.
Note that the shrink-wrap files changes quite a bit because
of the deduping mechanism of npm.
* fix(benchpress): make it work with latest protractor and seleniuv-webdriver
* fix(e2e_tests): make them work with latest protractor
2016-09-09 10:37:47 -07:00
Suguru Inatomi
df6762a170
docs(TestBed): Fix to current packageing ( #11472 )
2016-09-09 09:36:38 -07:00
Rob Wormald
d296298282
fix(build): prevent package tsconfigs from shadowing main tsconfig ( #11454 )
2016-09-08 15:01:22 -07:00
Victor Berchet
077e0be1e7
fix(CssSelector): fix `getMatchingElementTemplate()` for void tags
...
fixes #11407
2016-09-08 13:55:41 -07:00
Victor Berchet
a52d076912
refactor(CssSelector): misc
2016-09-08 13:55:41 -07:00
Pawel Kozlowski
436af15d63
refactor: remove parseFloat from facades ( #11446 )
2016-09-08 13:54:10 -07:00
Kara
7b24028437
fix(forms): fix disabled support for empty form containers ( #11427 )
...
Closes #11386
2016-09-08 12:21:48 -07:00
Matias Niemelä
6a2bbffe10
fix(animations): allow `group()` to be used as entry point for an animation trigger ( #11419 )
...
Closes #11312
Closes #11419
2016-09-08 12:20:07 -07:00
Pete Bacon Darwin
f78e184822
docs(FactoryProvider): add missing backtick ( #11444 )
2016-09-08 09:18:37 -07:00
Victor Berchet
78ad9adc1a
fix(ShadowCss): fix perf regression ( #11420 )
...
fixes #11371
2016-09-07 16:48:10 -07:00
Alex Eagle
9e2ec7a1aa
fix(ngc): use the compilerHost to detect file existence ( #11418 )
2016-09-07 16:24:52 -07:00
Alberto Santini
643afa4b15
docs(cheatsheet): fix typo NgModule definition ( #11377 )
...
`.Class` and not `.class` in js approach for NgModule definition.
2016-09-07 16:05:05 -07:00
Matias Niemelä
ed2ebeb52a
fix(build): test example directories with unit and e2e tests ( #11296 )
2016-09-07 16:04:33 -07:00
Trotyl Yu
cc958c74ad
docs(router): Fix typo of segment name and odd quote ( #11409 )
2016-09-07 14:10:19 -07:00
PatrickJS
3ff816afa6
style(CompileMetadataResolver): better error message ( #11401 )
2016-09-07 14:09:25 -07:00
Trotyl Yu
dd03bf12e1
docs: misc fixes.
...
docs(common_module): Fix macro format
docs(number_pipe): Add missing period sign
docs(date_pipe): Fix suffix consistency
docs(date_pipe): Fix missing quote
docs(number_pipe): Fix incorrect article
Looks like the word "Polyfill" does not start with a vowel pronunciation.
docs(location_strategy): Fix code format
Add missing \`\`\` at start.
docs(i18n_plural_pipe): Fix code format
docs(location): Add missing period sign
refactor(ngSwitch): fix typo on parameter
docs(di): Add missing quote
docs(compiler): Fix typo
docs(compiler): Add missing period sign
docs(directives): Fix description for styles parameter
docs(location_strategy): Add code language
Revert for misunderstanding.
2016-09-06 15:45:37 -07:00
Igor Minar
645108f25b
test: cleanup playground/src/bootstrap.ts file
2016-09-06 15:35:10 -07:00
Tobias Bosch
df4c0a3d1f
refactor(benchmarks): align tree benchmark with largetable benchmark
...
- add ng2_switch benchmark to track `ngFor` over `ngSwitch`
- measure create only, createDestroy and update
- simplify the created dom
- always add a style binding
2016-09-06 12:07:12 -07:00
Tobias Bosch
b4363bc8af
feat(benchmarks): add targetable benchmarks back
2016-09-06 12:07:12 -07:00
Hans
d26a827494
fix(lazy-loading): fix an issue with webpack and lazy loader. ( #11387 )
...
The issue was introduced in PR#11049.
2016-09-06 12:06:18 -07:00
Tobias Bosch
ea95c391c1
fix(compiler): error when `NgModule.bootstrap` contains `undefined` or `null`
2016-09-06 11:44:56 -07:00
Tobias Bosch
aa9b617c9d
fix(compiler): correctly type event handler proxy functions
2016-09-06 11:44:56 -07:00
PatrickJS
7192fec841
refactor(EventManager): remove ListWrapper ( #11363 )
2016-09-06 11:23:00 -07:00
PatrickJS
70b0ab457b
style(dom_renderer): use const ( #11229 )
2016-09-06 10:25:16 -07:00
Marc Laval
c25d1f7ecc
test: reactivate the remaining disabled tests in Edge ( #11188 )
...
Fixes #4756
2016-09-06 10:24:48 -07:00
Igor Minar
2371d22d49
chore: remove obsolete dart related files
2016-09-02 15:58:46 -07:00
Kara
8c09933803
fix(forms): support rebinding nested controls ( #11210 )
2016-09-02 15:57:35 -07:00
Victor Berchet
d309f7799c
fix(DomSchema): add missing elements
...
fixes #11219
2016-09-02 15:35:36 -07:00
Victor Berchet
93deff6c33
refactor(DomSchema): improve readability by making the schema more explicit using interface names
2016-09-02 15:35:36 -07:00
Alex Eagle
c31535982c
fix(ngc): prepend a rootDir when assuming a file exists ( #11291 )
...
Otherwise we'll later try to resolve the file under one of the rootDirs and won't find it.
2016-09-02 14:52:14 -07:00
Brandon
f5101782d9
docs(router): Fixed examples for router.navigate ( #11263 )
2016-09-02 13:42:51 -07:00
Alex Eagle
5e5ae3cde6
fix(ngc): propagate errors to main ( #11214 )
2016-09-01 16:54:37 -07:00
Kara
043493cb62
fix(forms): disabled controls should never be invalid ( #11257 )
...
Closes #11253
2016-09-01 16:51:42 -07:00
Tobias Bosch
2581c0851a
feat(benchmarks): add incremental-dom version of deep tree benchmark
2016-09-01 14:13:33 -07:00
Tobias Bosch
27d72e87c3
feat(benchmarks): add baseline for deep tree that only used `createElement`
2016-09-01 14:13:33 -07:00
Tobias Bosch
eef4c22e87
feat(benchmarks): add static tree benchmark
2016-09-01 14:13:33 -07:00
Martin Probst
ebc8e808a9
feat(router): register NgModuleFactory objects. ( #11211 )
...
When lazily loading code, users need to be able to get hold of the
NgModuleFactory. For SystemJS environments, the SystemJS registry serves
this purpose. However other environments, such as modules compiled with
Closure compiler, do not expose exports object or a path based registry.
For these environments, `@NgModule` objects can include an identifier, and
the loading code can then pass `loadModule(id).then(() =>
getNgModule(id))` to the router.
2016-09-01 13:46:08 -07:00
Matias Niemelä
c9e5b599e4
fix(animations): ensure parent animations are triggered before children ( #11201 )
2016-09-01 13:24:26 -07:00
Kathy Walrath
e42a057048
docs(cheatsheet): complete the copy edit ( #11215 )
...
…and general cleanup of the cheatsheet.
2016-09-01 12:06:42 -07:00
Victor Savkin
0bb94df1da
docs(core): docs fixes ( #11212 )
2016-09-01 11:45:59 -07:00
Igor Minar
ddda62b1f2
docs(router): add changelog for 3.0.0-rc.2
2016-08-31 16:55:18 -07:00
Igor Minar
f9eb1f33f4
fix(platform-webworker): remove trailing comma in package.json
2016-08-31 16:49:14 -07:00
Igor Minar
046c1a8a25
fix(compiler-cli): update package.json to tsc-wrapped@0.3.0
2016-08-31 16:49:14 -07:00
Igor Minar
08e48c8f73
fix(router): correct peerDependencies info in package.json
2016-08-31 16:49:14 -07:00
Marc Laval
1b5e2b5129
test: add Intl polyfill and run Intl tests in all browsers ( #10471 )
2016-08-31 15:55:13 -07:00
Matias Niemelä
562c8263dc
fix(animations): ensure animation callbacks are fired for embedded views
2016-08-31 15:46:23 -07:00
Igor Minar
f4f6f4b4d8
fix(core): don't require reflect-metadata shim when in AOT mode
2016-08-31 15:10:09 -07:00
Tobias Bosch
cc89ef6c8c
fix(core): report errors for missing di tokens correctly ( #11209 )
2016-08-31 14:47:56 -07:00
Tobias Bosch
6ea5b05e7c
refactor(benchmarks): make setup nicer
...
- simplify and correct systemjs config
- remove deep imports into Ng2 packages to work with bundles
- have separate Ng2 and Polymer bootstrap files
2016-08-31 11:24:22 -07:00
Tobias Bosch
f7b5478e9f
feat(benchmarks): add `polymer_leaves` benchmark
2016-08-31 08:24:11 -07:00
Tobias Bosch
873233e825
feat(benchpress): also report the statistics in the generated file
2016-08-31 08:24:11 -07:00
Tobias Bosch
942104d9ac
fix(benchpress): support chrome 52
...
Without this fix, the `scriptTime` was always 0.
2016-08-31 08:24:10 -07:00
Tobias Bosch
6dceaf209d
fix(benchmarks): recreate setup for running benchmarks
2016-08-31 08:24:10 -07:00
Tobias Bosch
1ef122988e
fix(benchpress): make code compile and unit tests green again
2016-08-31 08:24:10 -07:00
Tobias Bosch
db280fc67e
chore: move benchpress to @angular/benchpress
2016-08-31 08:24:09 -07:00
Victor Berchet
ef0f29c372
fix: merge artifact
2016-08-30 21:37:28 -07:00
Victor Berchet
1818056912
fix(TemplateParser): disallow event-property binding even with the NO_ERRORS_SCHEMA
...
closes #11026
2016-08-30 21:32:24 -07:00
Victor Berchet
1df69cb4d2
fix(DomSchemaRegistry): detect invalid elements
2016-08-30 21:32:03 -07:00
Igor Minar
2b20db6c5a
chore: update to typescript@2.0.2 - the currect 2.0 rc
2016-08-30 21:07:45 -07:00
Igor Minar
174c016104
fix(bundles): correct RxJS mapping in rollup config for umd/es5 bundles
2016-08-30 21:07:45 -07:00
Igor Minar
71ae2c4525
refactor(webworkers): move webworkers to separate @angular/platform-webworker and @angular/platform-webworker-dynamic packages
...
BREAKING CHANGE: web worker platform is now exported via separate packages.
Please use @angular/platform-webworker and @angular/platform-webworker-dynamic
2016-08-30 21:07:45 -07:00
Victor Berchet
0f68351979
fix(Router): fix type ( #11181 )
2016-08-30 21:06:38 -07:00
vsavkin
c74a438f0c
docs(router): fix up the exampesd
2016-08-30 20:37:35 -07:00
vsavkin
c350ba29f6
fix(router): do not use rx/add/operator
2016-08-30 20:37:35 -07:00
Marc Laval
6e40ef0f6d
refactor: remove requestAnimationFrame from polyfills and platforms ( #10528 )
2016-08-30 19:58:22 -07:00
Miško Hevery
979657989b
fix(packages): use ES modules for primary build ( #11120 )
2016-08-30 18:07:40 -07:00
Kathy Walrath
8cb1046ce9
docs(cheatsheet): copy edit bootstrapping.md ( #11149 )
...
Also remove Dart-specific code, since the Dart cheatsheet is produced
from dart-lang/angular2.
2016-08-30 08:32:51 -07:00
Kathy Walrath
d53a898f46
edit dependency-injection.md ( #11156 )
...
No copy edits to this one, but I removed Dart-specific code, since the
Dart cheatsheet is produced from dart-lang/angular2.
Part of a group of cheatsheet PRs (see #11149 ).
cc @Foxandxss & @IgorMinar
2016-08-29 18:13:35 -07:00
Kathy Walrath
f9f80003c8
docs(cheatsheet): copy edit class-decorators.md ( #11154 )
...
No copy edits to this one, but I removed Dart-specific code, since the
Dart cheatsheet is produced
from dart-lang/angular2.
2016-08-29 18:13:10 -07:00
Kathy Walrath
d59ee3caaa
docs(cheatsheet): copy edit component-configuration.md ( #11155 )
...
Also remove Dart-specific code, since the Dart cheatsheet is produced
from dart-lang/angular2.
Part of a group of cheatsheet PRs (see #11149 ).
cc @Foxandxss & @IgorMinar
2016-08-29 18:12:51 -07:00
Kathy Walrath
b8ea71afb6
docs(cheatsheet): copy edit built-in-directives.md ( #11153 )
...
Also remove Dart-specific code, since the Dart cheatsheet is produced
from dart-lang/angular2.
2016-08-29 18:12:42 -07:00