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
Victor Savkin
e2241a2f92
fix(router): support guards navigating synchronously ( #11150 )
2016-08-29 17:51:38 -07:00
Kara
e8a1566065
fix(forms): support radio buttons with same name but diff parent ( #11152 )
...
Closes #10065
2016-08-29 17:49:42 -07:00
Kara Erickson
d2ad871279
fix(forms): update validity when validator dir changes
...
closes #11116
2016-08-29 13:12:46 -07:00
Javier Ros
0b665c0ece
feat(validations): add support to bind validation attributes
...
This change enables to bind the validations attributes `required`,
`minlength`, `maxlength` and `pattern`.
Closes : #10505 , #7393
2016-08-29 13:12:20 -07:00
Alex Eagle
875e66409c
fix(closure): prevent closure renaming of testability interface ( #11146 )
2016-08-29 13:08:28 -07:00
Tobias Bosch
d7de5c4f8e
refactor(compiler): replace `CompileIdentifierMap` with regular `Map`
...
closes #11145
Also rename `CompileIdentifierMetadata.runtime` into `CompileIdentifierMetadata.reference`.
Also remove `CompileIdentifierMetadata.equalsTo` as
now it is enough to just check the `reference` fields for equality.
2016-08-29 12:45:27 -07:00
Chuck Jazdzewski
51877ef4ed
fix(compiler): no longer uses assetCacheKey for token identity.
...
Fixes #10545 , Fixes #10538
2016-08-29 12:45:02 -07:00
Marc Laval
38069aba35
fix(compiler): make ShadowCSS shim work on Android browser ( #11139 )
...
Fixes #11123
2016-08-29 08:18:55 -07:00
Marc Laval
7dee1ee4cf
test(core): update ErrorHandler tests to handle browsers without stack ( #11141 )
...
Fixes #11114
2016-08-29 08:17:45 -07:00
Victor Berchet
af63378fa0
fix(ShadowCss): properly shim selectors after :host and :host-context ( #10997 )
...
fixes #5390
Before the change:
// original CSS
:host .foo .bar {...}
.foo .bar {...}
// translated to
[_nghost-shh-2] .foo .bar {...}
.foo[_ngcontent-shh-2] .bar[_ngcontent-shh-2] {...}
Note that `.foo` and `.bar` where not scoped and would then apply to nested components.
With this change those selectors are scoped (as they are without `:host`).
You can explicitly apply the style to inner component by using `>>>` or `/deep/`: `:host >>> .foo`
2016-08-26 16:11:57 -07:00
Alex Eagle
abad6673e6
fix(ngc): don't quote properties in literal maps ( #11110 )
...
Closure compiler treats quoted properties specially, and doesn't rename them.
Fixes #11050
2016-08-26 15:54:34 -07:00
Florian Knop
75553200c0
fix(http): encode correct value for %3D ( #9790 )
2016-08-26 15:47:29 -07:00
Marc Laval
6c77d7182a
fix(compiler-cli): make ngc to work on Windows ( #10919 )
...
Fixes #10792
2016-08-26 15:41:50 -07:00
James Blacklock
4a44832114
fix(UrlParser) stop setting default value 'true' (matrix params) ( #10946 )
...
This was already fixed recently for query params in #10399 .
2016-08-26 15:41:32 -07:00
Alex Rickabaugh
27539c8b80
refactor(example): refactor forward_ref example into a spec and unignore example specs ( #11088 )
2016-08-26 15:40:46 -07:00
Victor Berchet
e220a80093
feat(codegen): Add an error message when the locale is not provided ( #11104 )
2016-08-26 15:38:48 -07:00
Victor Berchet
9ce8ef76bf
fix(ErrorHandler): make rethrowError internal so that the interface can be implemented ( #11109 )
2016-08-26 14:43:42 -07:00
Misko Hevery
7c07bfff97
fix(errors): [2/2] Rename Exception to Error; remove from public API
...
BREAKING CHANGE:
Exceptions are no longer part of the public API. We don't expect that anyone should be referring to the Exception types.
ExceptionHandler.call(exception: any, stackTrace?: any, reason?: string): void;
change to:
ErrorHandler.handleError(error: any): void;
2016-08-26 10:37:17 -07:00
Misko Hevery
86ba072758
fix(errors): [1/2] Rename Exception to Error; remove from public API
2016-08-26 10:37:17 -07:00
Victor Berchet
fc1e45db92
fix(Router): merge artifacts
...
closes #11063
closes #11102
2016-08-26 10:32:35 -07:00
vsavkin
a2deafc50f
fix(router): add an option to disable initial navigation
2016-08-26 10:32:35 -07:00
vsavkin
2fc5c57b31
feat(router): add support for custom error handlers
2016-08-26 10:32:35 -07:00
vsavkin
93f323cfa2
refactor(router): make RouterLink and RouterLinkWithHref create url in a similar way
2016-08-26 10:32:35 -07:00
vsavkin
bb9dfbc578
fix(router): use encodeUri/decodeUri to encode fragment
2016-08-26 10:32:35 -07:00
vsavkin
0bb516fae2
fix(router): fix the order of guards, so canActivateChild runs before canActivate
2016-08-26 10:32:35 -07:00
vsavkin
2ffecc0e14
fix(router): update the location before activating components
2016-08-26 10:32:35 -07:00
Victor Berchet
b9647b7347
fix(i18n): change default locale from `en_US` to `en-US` ( #11103 )
2016-08-26 10:30:10 -07:00
Pawel Kozlowski
f25c97671a
fix(compiler): handle invalid host bindings and events ( #11101 )
2016-08-26 10:29:53 -07:00
Victor Berchet
0a053a4cd5
fix(i18n): Currency/Date/Number pipe use injected locale ( #11093 )
2016-08-26 09:16:01 -07:00
Igor Minar
4d7d2a2daa
refactor: remove various leftover unused or deprecated code ( #11091 )
2016-08-26 09:12:27 -07:00
Marc Laval
0cf5ece7f8
build: workaround to run presubmit.sh on Windows ( #11096 )
2016-08-26 09:12:10 -07:00
Marc Laval
66df335998
chore(dependencies): switch from es6-shim to core-js ( #10884 )
2016-08-25 17:28:36 -07:00
Igor Minar
811962b2bb
refactor: rename SanitizationService to Sanitizer and DomSanitizationService to DomSanitizer ( #11085 )
...
BREAKING CHANGE: Previously inconsistently named APIs SanitizationService and DomSanitizationService were renamed to Sanitizer and DomSanitizer
2016-08-25 15:41:19 -07:00
Victor Berchet
b867764b0d
refactor(template): remove supporter deprecated `var` / `#` ( #11084 )
...
BREAKING CHANGES:
- `#` and `var` are not supported any more in expressions, use `let`,
- `var-<name>` could not be used any more on templates, use `let-<name>`,
- `var-<name>` could not be used any more to create a reference, use `ref-<name>`.
2016-08-25 15:21:33 -07:00
Kara
ce08982f78
fix(forms): fix conflicting getter name ( #11081 )
2016-08-25 14:56:31 -07:00
Marc Laval
cbe0976426
test: improve perfs by removing unneeded TestBed.compileComponents() calls ( #11083 )
2016-08-25 14:56:14 -07:00
Kara
515ff61fcb
fix(forms): fully support rebinding form group directive ( #11051 )
2016-08-25 14:37:57 -07:00
Marc Laval
d7c82f5c0f
test: fix memory leak when running test campaign ( #11072 )
2016-08-25 14:37:46 -07:00
Igor Minar
566d4361e2
refactor: remove obsolete analyzeAppProvidersForDeprecatedConfiguration
...
closes #11028
2016-08-25 13:29:43 -07:00
Igor Minar
ea2e5521e8
refactor: replace any[] with Provider[] where possible
2016-08-25 13:29:03 -07:00
Igor Minar
eb7d8c702c
fix(core): FactoryProvider's deps property should be optional
2016-08-25 13:29:03 -07:00
Igor Minar
5d294624fa
docs(core): update stability markers for core apis
2016-08-25 13:29:03 -07:00
Igor Minar
3aaf064d11
refactor(router): remove ROUTER_DIRECTIVES which were replaced by RouterModule
2016-08-25 13:29:03 -07:00
Igor Minar
f38a700e35
docs(upgrade): mark upgrade apis as stable
2016-08-25 13:29:03 -07:00
Igor Minar
501b83441d
refactor(forms): remove FORM_PROVIDERS, FORM_DIRECTIVES, REACTIVE_FORM_PROVIDERS, REACTIVE_DIRECTIVES
...
All of these have been replaced by FormsModule and ReactiveFormsModule.
2016-08-25 13:29:03 -07:00
Igor Minar
c03e25a7b7
docs(common): mark platform-browser and platform-browser-dynamic apis stable
2016-08-25 13:29:03 -07:00
Igor Minar
1f5a5895e5
refactor(common): rename UrlChangeEvent and UrlChangeListener to LocationChangeEvent and LocationChangeListener
...
These apis are not expected to be used anyone, hence I'm not documenting this change as a breaking.
2016-08-25 13:29:03 -07:00
Igor Minar
8a2324f86a
docs(common): mark all common apis except for i18n as stable
2016-08-25 13:29:03 -07:00
Igor Minar
6335b31702
refactor(common): remove COMMON_DIRECTIVES, COMMON_PIPES, CORE_DIRECTIVES that were replace with CommonModule
2016-08-25 13:29:03 -07:00
John Lindquist
6ef7a76e39
doc(form): updating example to avoid "TypeError: Converting circular structure to JSON" ( #10184 )
2016-08-25 11:14:40 -07:00
Jesús Rodríguez
cc79dcac7f
docs(cheatsheet): update javascript sections ( #11070 )
2016-08-25 11:12:23 -07:00
Alex Eagle
dc6f72e963
fix(closure): replace property accesses ( #11078 )
...
Accessing a property on the window object must be done with square brackets.
Otherwise closure compiler may collide the symbol's alias between the property
and variable mappings.
Also, accessing the 'provide' property must be done with dot syntax, so that
it can be renamed along with the code that declares such a property.
2016-08-25 11:12:06 -07:00
Kara
2b313e4979
feat(forms): add support for disabled controls ( #10994 )
2016-08-24 16:58:43 -07:00
Matias Niemelä
4f8f8cfc66
feat(animations): make sure animation callback reports the totalTime ( #11022 )
...
Closes #11022
2016-08-24 16:55:00 -07:00
Alex Rickabaugh
8b782818f5
feat(linker): Allow configurable module prefixes and suffixes. ( #11049 )
2016-08-24 16:54:42 -07:00
Chuck Jazdzewski
bd510ccdbb
fix(core): assigns an overriden name to constructor named constructor ( #11043 )
...
Fixes #10545
2016-08-24 10:21:13 -07:00
Victor Savkin
f1ce7607a6
fix(router): canLoad should cancel a navigation instead of failing it ( #11001 )
2016-08-24 10:20:44 -07:00
Igor Minar
7dfcaac730
fix(http): restructure exports so that we don't leak private factory functions ( #11016 )
...
Ref #10615
2016-08-23 16:34:57 -07:00
Alex Eagle
c7a874dd2f
feature(ngc): allow codegen to skip over .d.ts inputs ( #11021 )
2016-08-23 16:26:35 -07:00
Pawel Kozlowski
aa5c8ca61f
fix(compiler): throw descriptive error meesage for invalid NgModule providers ( #10947 )
...
Fixes #10714
2016-08-23 16:18:41 -07:00
vikerman
5c93a8800a
fix(core): Share private types through an exported interface. ( #11009 )
...
Instead of using declare namespace to share the types. This allows the generated code to be compiled with closure with full optimizations.
2016-08-23 16:18:11 -07:00
Alex Rickabaugh
05bbb8efcf
fix(platform-browser): remove export for private symbol _WORKER_UI_PLATFORM_PROVIDERS. ( #11018 )
2016-08-23 16:16:40 -07:00
Chuck Jazdzewski
14a30f3ca0
fix(compiler): Correctly handles references to static methods ( #11013 )
...
Fixes : #10975
2016-08-23 11:58:12 -07:00
Alex Rickabaugh
5ddecb18a7
feat(router): throw a helpful error when misusing forRoot() from a lazy module. ( #10996 )
2016-08-23 11:57:58 -07:00
Luka Pejovic
c02325dd06
docs(DatePipe): add AM/PM designator in description #10998
2016-08-23 11:57:41 -07:00
Igor Minar
4a740f23a4
refactor(core): remove deprecated @Component.directives and @Component.pipes
...
BREAKING CHANGE: previously deprecated @Component.directives and @Component.pipes support was removed.
All the components and pipes now must be declarated via an NgModule. NgModule is the basic
compilation block passed into the Angular compiler via Compiler#compileModuleSync or #compileModuleAsync.
Because of this change, the Compiler#compileComponentAsync and #compileComponentSync were removed as well -
any code doing compilation should compile module instead using the apis mentioned above.
Lastly, since modules are the basic compilation unit, the ngUpgrade module was modified to always require
an NgModule to be passed into the UpgradeAdapter's constructor - previously this was optional.
2016-08-23 09:59:00 -07:00
Igor Minar
a782232ca3
refactor(core): fix typo in private property name
2016-08-23 09:59:00 -07:00
Igor Minar
a29f9f3ab8
refactor(core/testing): remove deprecated TestComponentBuilder
...
BREAKING CHANGE: deprecated TestComponentBuilder was removed, please use TestBed instead
2016-08-23 09:59:00 -07:00
Igor Minar
3c2b2ff332
test: fix existing tests by removing usage of obsolete stuff like component level directives, AsyncCompleter and TestComponentBuilder
2016-08-23 09:59:00 -07:00
Hans
939d318242
refactor(platform-browser-dynamic): Removed TestComponentBuilder from ResourceLoaderCache specs ( #10890 )
2016-08-23 09:22:33 -07:00
Chuck Jazdzewski
39a2c39cef
feat(compiler): Added "strictMetadataEmit" option to ngc ( #10951 )
...
ngc can now validate metadata before emitting to verify it doesn't
contain an error symbol that will result in a runtime error if
it is used by the StaticReflector.
To enable this add the section,
"angularCompilerOptions": {
"strictMetadataEmit": true
}
to the top level of the tsconfig.json file passed to ngc.
Enabled metadata validation for packages that are intended to be
used statically.
2016-08-22 17:37:48 -07:00
Matias Niemelä
45e8e73670
refactor(animations): deport TCB away from animation-land forever ( #10892 )
...
* feat(animations): support animation trigger template callbacks
* refactor(animations): deport TCB away from animation-land forever
2016-08-22 17:18:25 -07:00
Rob Wormald
ca41b4f5ff
feature(core): update RxJS to 5.0.0-beta.11 ( #10648 )
2016-08-22 17:17:23 -07:00
Matias Niemelä
3c561475c8
refactor(animations): add an onStart handler for AnimationPlayer ( #10360 )
2016-08-22 16:39:52 -07:00
Alex Eagle
01111b04ff
fix(ngc): codegen allows --strictNullChecks ( #10991 )
2016-08-22 15:30:18 -07:00
Alex Eagle
8560e1e4bf
fix(ngc): comment out a private keyword in codegen. ( #10949 )
...
Workaround for b/30775898
2016-08-22 14:28:09 -07:00
Alex Eagle
e0fbca9fb0
feat(ngc): support pathmapping using a separate reflector ( #10985 )
...
Until we have comprehensive E2E tests, it's too risky to change the
reflector_host Misko wrote before final. But google3 uses path mapping
and needs all imports to be and all paths to be canonicalized to
the longest rootDir.
This change introduces a subclass of ReflectorHost with overrides for methods
that differ. After final (or when we have good tests), we'll refactor
them back into one class.
2016-08-22 11:48:33 -07:00
Kara
ece7985b8a
chore(formatting): fix formatting for component fixture spec ( #10986 )
2016-08-22 10:20:21 -07:00
Kara
9883e19e2e
fix(tests): remove fit in component_fixture_spec ( #10961 )
2016-08-19 17:12:58 -07:00
Victor Savkin
c631cfc2fd
feat(core): add NO_ERRORS_SCHEMA that allows any properties to be set on any element ( #10956 )
...
Often it is useful to test a component without rendering certain directives/components
in its template because these directives require some complicated setup.
You can do that by using NO_ERRORS_SCHEMA.
TestBed.configureTestingModule({
schemas: [NO_ERRORS_SCHEMA]
});
This would disable all schema checks in your tests.
2016-08-19 16:05:34 -07:00
Victor Savkin
53c99cfc95
feat(router): add syntax sugar for confuguring RouterTestingModule ( #10906 )
2016-08-19 16:01:59 -07:00
Victor Savkin
c56f3f2246
fix(compiler): do not autoinclude components declared as entry points ( #10898 )
2016-08-19 15:59:50 -07:00
Brandon
cc0e3d2296
docs(router): Added additional router documentation including cheatsheet updates ( #10802 )
2016-08-19 15:48:09 -07:00
Julie Ralph
917d43e108
refactor(tests): add ComponentFixture tests ( #10910 )
...
Remove old TestComponentBuilder tests, and keep relevant
ComponentFixture tests as component_fixture_spec.
2016-08-19 15:46:40 -07:00
Julie Ralph
bb7d55244d
fix(zones): bump zone version to 0.6.15 ( #10953 )
...
This fixes issues with microtasks being called too early
in certain tests.
2016-08-19 14:35:26 -07:00