Chuck Jazdzewski
20b03bad11
feat(compiler): Added support for conditional expressions. ( #10366 )
...
Expression evaluated by the static reflector can now supports
conditional expressions.
Closes : #10365
2016-07-28 17:32:29 -07:00
vsavkin
81d27daf0d
fix(router): update dts files
2016-07-28 15:03:19 -07:00
vsavkin
bb8b82b3f5
fix(router): relax type defintion of Route to improve dev ergonomics
2016-07-28 15:03:19 -07:00
vsavkin
915a6666f8
fix(core): fix offline detection in ng_module_factory_loader
2016-07-28 15:03:19 -07:00
vsavkin
72da547d6a
fix(router): updates router module to be offline-compilation friendly
2016-07-28 15:03:19 -07:00
Kara
7c76a75452
fix(forms): update dirty before emitting value change ( #10362 )
...
Closes #5328
2016-07-28 14:25:33 -07:00
Tobias Bosch
a32c4ad2f0
fix(compiler): auto declare entryComponents recursively
...
Closes #10348
2016-07-28 12:03:34 -07:00
Tobias Bosch
fb3608aa5d
fix(compiler): report better error messages for host bindings
...
Closes #10346
2016-07-28 11:21:50 -07:00
Tobias Bosch
9b39e499ac
fix(core): support components without a selector ( #10331 )
...
Components without a selector now get the selector `ng-component`.
Directives without a selector will throw an error message.
Closes #3464
Closes #10216
2016-07-28 10:39:10 -07:00
Hans
a67cc8229d
chore: move injector to being non-internal but private ( #10339 )
...
* chore: move injector to being non-internal but private
* Add the new non-internal method to the public API.
2016-07-28 10:38:29 -07:00
Chuck Jazdzewski
b58e9ea775
feat(compiler): Added support for references to static fields. ( #10334 )
...
Closes : #10332
2016-07-27 19:26:59 -07:00
Rob Wormald
422effdd18
refactor(http): use ngModules for http ( #10329 )
2016-07-27 13:09:05 -07:00
vikerman
3b690b68a6
fix(testing): Fix error message in test bed
...
The API name in the error message was wrong
2016-07-27 12:03:27 -07:00
Kara
43349dd373
fix(forms): improve ngModel error messages ( #10314 )
2016-07-27 10:59:40 -07:00
Tobias Bosch
e44e8668ea
fix(core): only warn and auto declare undeclared entryComponents.
...
This is needed to support existing applications.
After final these warnings will become errors.
Closes #10316
2016-07-27 10:56:12 -07:00
Tobias Bosch
69e72c0786
chore: remove browserDynamicTestingPlatform as it is deprecated and was not part of rc.4
...
Closes #10319
2016-07-27 10:52:47 -07:00
Tobias Bosch
553344739c
fix(core): allow module providers to overwrite providers from ModuleWithProviders
...
Fixes #10313
Closes #10317
2016-07-27 10:51:58 -07:00
Tobias Bosch
367f0fd142
fix(static_reflector): report methods with decorators in propMetadata as well
...
This was the behavior of our regular reflector as well, although the
method name does not imply this.
Fixes #10308
Closes #10318
2016-07-27 10:50:58 -07:00
Gabe Johnson
58d9e7fc5a
feat(facade): add support for all thenables ( #10278 )
...
All objects that have a then function will be considered Promises
2016-07-27 10:37:48 -07:00
vsavkin
9d9e9c6ff1
refactor(router): take advantage of the new way of configuring modules
2016-07-27 10:24:29 -07:00
Matias Niemelä
ba88db5141
fix(ngClass): do not deconstruct classes on element removal ( #10303 )
...
Prior to this fix [ngClass] would remove all dynamic classes
when destroyed. It's essential that classes are persisted such
that remove-based animations will still be stylistically correct.
This patch fixes this issue.
Closes #10008
Closes #10303
2016-07-26 15:20:27 -07:00
vsavkin
62e7c0f464
feat(router): implement canLoad
2016-07-26 14:39:02 -07:00
Tobias Bosch
fc83bbbe98
fix(compiler): treat custom elements as unknown elements by default
...
Closes #10300
2016-07-26 12:31:22 -07:00
Martin Probst
482c019199
feat(security): only warn when actually sanitizing HTML. ( #10272 )
...
Previously, Angular would warn users when simply re-encoding text
outside of the ASCII range. While harmless, the log spam was annoying.
With this change, Angular specifically tracks whether anything was
stripped during sanitization, and only reports a warning if so.
Fixes #10206 .
2016-07-26 11:39:09 -07:00
Chuck Jazdzewski
b449467940
feat(compiler): Allow calls to simple static methods ( #10289 )
...
Closes : #10266
2016-07-26 10:18:35 -07:00
Kara
0aba42ae5b
fix(forms): throw error if wrong control container for reactive forms ( #10286 )
2016-07-26 10:08:46 -07:00
Matias Niemelä
0d1bf8148b
fix(animations): ensure animation detection doesn't rely on the body node
...
Closes #10230
Closes #10191
Closes #10273
2016-07-26 09:33:50 -07:00
Tobias Bosch
b42411ba1f
chore: update public api
...
- `precompile` -> `entryComponents`
- introduce `ModuleWithProviders`
- introduce `@NgModule.schema`
- update to bootstrap
Closes #10268
2016-07-26 07:45:40 -07:00
Tobias Bosch
5a21f168d6
refactor(core): change bootstrap of modules and names of platforms
...
BREAKING CHANGES:
- `browserPlatform`/`browserDynamicPlatform`/... have been deprecated and renamed into `platformBrowser`/`platformBrowserDynamic`/....
- `bootstrapModule` and `bootstrapModuleFactory` have been moved to be members of `PlaformRef`.
E.g. `platformBrowserDynamic().bootstrapModule(MyModule)`.
2016-07-26 07:28:55 -07:00
Tobias Bosch
00b726f695
refactor(core): introduce NgModule.schemas
...
This allows Angular to error on unknown properties,
allowing applications that don’t use custom elements
to get better error reporting.
Part of #10043
BREAKING CHANGE:
- By default, Angular will error during parsing
on unknown properties,
even if they are on elements with a `-` in their name
(aka custom elements). If you application is using
custom elements, fill the new parameter `@NgModule.schemas`
with the value `[CUSTOM_ELEMENTS_SCHEMA]`.
E.g. for bootstrap:
```
bootstrap(MyComponent, {schemas: [CUSTOM_ELEMENTS_SCHEMA]});
```
2016-07-26 07:04:36 -07:00