Victor Berchet
f238c8ac7a
Revert "fix(compiler): xmb `<ph>` tags should not self close ( #13413 )"
...
This reverts commit 4b3d135193
.
closes #13463
2016-12-14 12:54:58 -08:00
Victor Berchet
8c27c62fab
Revert "test(i18n): fix a typo in the reference xmb ( #13441 )"
...
This reverts commit a8d237581d
.
2016-12-14 12:54:50 -08:00
Bradford C. Smith
5031adc7a3
refactor(facade): don't expect super() to return a new Error object in BaseError ( #12600 )
...
Related to #12575
2016-12-14 11:54:57 -08:00
gary-b
821b8f09d6
fix(forms): ensure select[multiple] retains selections
...
If you bound an array to select[multiple] via ngModel and subsequently
changed the options to select from, the UI would drop any selections
made since by the user. This was due to
SelectMultipleControlValueAccessor not keeping a reference to the new
model arrays it generated when users interacted with the select control.
Update code to keep the reference.
Closes #12527
Closes #12654
2016-12-14 08:52:07 -08:00
Dzmitry Shylovich
2bf1bbc071
fix(forms): introduce checkbox required validator
...
Closes #11459
Closes #13364
2016-12-14 08:44:24 -08:00
gary-b
7b0a86718c
fix (forms): clear selected options when model is not an array ( #12519 )
...
When an invalid model value (eg empty string) was preset ngModel on
select[multiple] would throw an error, which is inconsistent with how it
works on other user input elements. Setting the model value to null or
undefined would also have no effect on what was already selected in the
UI. Fix this by clearing selected options when model set to null,
undefined or a type other than Array.
Closes #11926
2016-12-14 08:34:19 -08:00
Pawel Kozlowski
3edca4d37e
fix(core): properly destroy embedded Views attatched to ApplicationRef ( #13459 )
...
Fixes #13062
2016-12-14 08:33:29 -08:00
Victor Berchet
a0a05041ac
refactor: format & lint
2016-12-13 17:44:52 -08:00
Hans
7256d0ede5
chore(internal API): introduce an internal API for ngtools. ( #13415 )
2016-12-13 17:35:06 -08:00
Hans
d62d89319e
fix(compiler): generated CSS files suffixed with ngstyle. ( #13353 )
...
Mirrors factories which ends in `ngfactory`.
Closes #13141 .
2016-12-13 17:34:46 -08:00
Tobias Bosch
f5f1d5f65c
fix(compiler): make sure provider values with `name` property don’t break.
...
Fixes #13394
Closes #13445
2016-12-13 17:25:59 -08:00
Victor Berchet
a8d237581d
test(i18n): fix a typo in the reference xmb ( #13441 )
2016-12-13 12:35:09 -08:00
Pawel Kozlowski
d036165a19
refactor: remove intl from facades ( #13404 )
...
The existing intl.ts file is not a facade but
rather a set of utils used by i18n-related pipes only.
As such moving it back to common module so those utils
are not used accidently from other places.
2016-12-13 12:34:50 -08:00
Marc Laval
d17e690eb4
test(upgrade): fix failing test in browsers which do not support RAF
...
closes #13399
2016-12-13 12:28:44 -08:00
Chuck Jazdzewski
2b90cd532f
fix(compiler): narrow the span reported for invalid pipes
...
fixes #13326
closes #13411
2016-12-13 11:23:47 -08:00
Chuck Jazdzewski
3a64ad895a
fix(language-service): correctly type undefined
...
fixes #13412
closes #13414
2016-12-13 11:23:08 -08:00
Chuck Jazdzewski
9ec0a4e105
feat(language-service): warn when a method isn't called in an event ( #13437 )
...
Closes 13435
2016-12-13 11:20:45 -08:00
Victor Berchet
4b3d135193
fix(compiler): xmb `<ph>` tags should not self close ( #13413 )
2016-12-12 19:10:20 -08:00
Dzmitry Shylovich
1d0ed6f75f
docs(core): update OnDestroy description ( #13369 )
...
Closes #11228
2016-12-12 16:45:56 -08:00
Chuck Jazdzewski
6f330a5fc9
fix(language-service): treat string unions as strings ( #13406 )
...
Fixes #13403
2016-12-12 16:42:20 -08:00
Victor Berchet
7295a5e7f2
refactor: format and lint code
2016-12-12 11:30:25 -08:00
Misko Hevery
20bed46737
docs(Location): updating Location docs and adding example
...
closes #11500
2016-12-12 11:19:21 -08:00
Misko Hevery
2a5012d515
chore: Add @types/systemjs
2016-12-12 11:19:05 -08:00
Jesús Rodríguez
fb38fba8f9
chore: convert hash_location_strategy example to a tested spec
2016-12-12 11:19:05 -08:00
Dzmitry Shylovich
4c35be3e07
feat(forms): add novalidate by default ( #13092 )
2016-12-12 11:17:42 -08:00
Dzmitry Shylovich
e9f307f948
fix(forms): fix Validators.min/maxLength with FormArray ( #13095 )
...
Fixes #13089
2016-12-12 11:17:12 -08:00
Dzmitry Shylovich
2e500cc85b
fix(http): create a copy of headers when merge options ( #13365 )
...
Closes #11980
2016-12-12 11:16:34 -08:00
Dzmitry Shylovich
56dce0e26d
feat(common): export NgLocaleLocalization ( #13367 )
...
Closes #11921
2016-12-12 11:16:12 -08:00
Dzmitry Shylovich
8a8c53250e
fix(dom_adapter): remove logError from logGroup ( #12925 )
2016-12-09 15:40:26 -08:00
domusofsail
08ff2e5249
fix(http): check response body text against undefined ( #13017 )
2016-12-09 15:39:39 -08:00
Dzmitry Shylovich
a006c1418a
feat(router): routerLink add tabindex attribute ( #13094 )
...
Fixes #10895
2016-12-09 15:38:50 -08:00
Dzmitry Shylovich
90c223591f
feat(http): simplify URLSearchParams creation ( #13338 )
...
Closes #8858
2016-12-09 15:38:29 -08:00
Victor Berchet
aaf6e05f56
refactor(commonn): fix lint issues
...
closes #13352
2016-12-09 15:37:46 -08:00
Victor Berchet
3bee521aa4
fix(compiler): support dotted property binding
...
fixes angular/flex-layout#34
2016-12-09 15:37:41 -08:00
Victor Berchet
95f48292b1
test(Selector): add a test for dotted attribute names
2016-12-09 15:37:41 -08:00
Victor Berchet
04cfa1ebdf
refactor(Compiler): cleanup
2016-12-09 15:37:41 -08:00
Victor Berchet
4022173d1e
fix(compiler): fix PR 13322 ( #13331 )
2016-12-09 11:22:44 -08:00
Victor Berchet
c8baf51f4f
style: clang-format the code
2016-12-09 11:19:55 -08:00
Misko Hevery
b4db73d0bf
feat: ngIf now supports else; saves condition to local var
...
NgIf syntax has been extended to support else clause to display template
when the condition is false. In addition the condition value can now
be stored in local variable, for later reuse. This is especially useful
when used with the `async` pipe.
Example:
```
<div *ngIf="userObservable | async; else loading; let user">
Hello {{user.last}}, {{user.first}}!
</div>
<template #loading>Waiting...</template>
```
closes #13061
closes #13297
2016-12-09 11:19:08 -08:00
Misko Hevery
e15a3f273f
fix: Better instructions on running examples and their tests
2016-12-09 11:16:49 -08:00
Misko Hevery
213c713409
fix: Better error when directive not listed in NgModule.declarations
2016-12-09 11:16:28 -08:00
Dzmitry Shylovich
9a8423da36
fix(selector): SelectorMatcher match elements with :not selector ( #12977 )
2016-12-09 10:45:48 -08:00
Matias Niemelä
f0b0762f4a
fix(animations): always cleanup players after they have finished internally ( #13334 )
...
Closes #13333
Closes #13334
2016-12-09 10:45:10 -08:00
Victor Berchet
b5c4bf1c59
refactor(router): misc refactoring ( #13330 )
2016-12-09 10:44:46 -08:00
maxime-allex
56c361ff6a
test(compiler): test i18n explicit id
...
closes #13272
2016-12-09 10:43:57 -08:00
maxime-allex
562f7a2f8b
feat(compiler): digest methods return i18nMessage id if sets
2016-12-09 10:43:47 -08:00
maxime-allex
6dd5201765
feat(compiler): add id property to i18nMessage
2016-12-09 10:43:47 -08:00
Dzmitry Shylovich
72361fb68f
feat(platform browser): introduce Meta service ( #12322 )
2016-12-08 18:44:28 -08:00
Victor Berchet
5c6ec20c7e
refactor(router): simplify regexp
...
closes #11373
closes #13329
2016-12-08 18:43:17 -08:00
Andy Howell
440ef02f29
fix(router): add support for query params with mulitple values
...
closes #11373
2016-12-08 18:42:58 -08:00
Victor Berchet
4e3d58a792
Revert "fix(compiler): fix transpiled ES5 code ( #13322 )"
...
This reverts commit 4398056146
.
2016-12-08 17:53:58 -08:00
Victor Berchet
61d7c1e0b3
feat(common): add a `titlecase` pipe ( #13324 )
...
closes #11436
2016-12-08 16:33:24 -08:00
Victor Berchet
4398056146
fix(compiler): fix transpiled ES5 code ( #13322 )
...
fixes #13301
The inner class would transpile to a nested function declaration which is not
allowed in ES5.
See http://eslint.org/docs/rules/no-inner-declarations
2016-12-08 15:02:59 -08:00
Jónatan Núñez
9591a08dfb
fix(router): Use T type in Resolve interface ( #13242 )
2016-12-08 11:24:38 -08:00
Alex Rickabaugh
13b41bd631
chore(release): update version of tsc-wrapped to 0.4.2
2016-12-07 13:54:22 -08:00
Chuck Jazdzewski
4a09c81724
fix(language-service): do not throw for invalid metadata ( #13261 )
...
Fixes #13255
2016-12-06 17:11:09 -08:00
Miško Hevery
16efb13dd1
fix: display framework version on bootstrapped component ( #13252 )
2016-12-06 16:21:07 -08:00
Dzmitry Shylovich
986abbe0b2
fix(http): set the default Accept header ( #12989 )
...
Fixes #6354
2016-12-06 16:20:43 -08:00
Chuck Jazdzewski
25c2141991
fix(language-service): remove incompletely used parameter from `createLanguageServiceFromTypescript()` ( #13278 )
...
Fixes #13277
2016-12-06 16:19:39 -08:00
Dzmitry Shylovich
2893c2c0a2
fix(router): validate nested routes ( #13224 )
...
Fixes #12827
2016-12-06 10:41:01 -08:00
Victor Berchet
66b6fc010d
refactor(common): unify export structure
2016-12-06 10:40:38 -08:00
Chuck Jazdzewski
f31c9470fa
fix(compiler): short-circut expressions with an index ( #13263 )
...
Fixes #13254
2016-12-06 10:40:15 -08:00
Maxime Robert
4bd8f58552
FIX typo ( #13267 )
2016-12-06 10:40:01 -08:00
Chuck Jazdzewski
93556a5720
fix(language-service): avoid throwing for invalid class declarations ( #13257 )
...
Fixes #13253
2016-12-06 09:56:30 -08:00
Tobias Bosch
5614c4ff0f
fix(compiler): serialize any `StaticSymbol` correctly, not matter in which context.
2016-12-05 14:20:01 -08:00
Tobias Bosch
c3065aac7a
refactor(compiler): replace `isStaticSymbol` with `instanceof StaticSymbol`
2016-12-05 14:20:01 -08:00
vsavkin
c767df0e4e
fix(router): throw a better error message when angular 1 is not bootstraped
2016-12-05 10:57:24 -08:00
vsavkin
25e5b2fdf0
fix(router): make setUpLocationChangeListener idempotent
2016-12-05 10:57:24 -08:00
Victor Berchet
307c4693dc
refactor(router): code cleanup
2016-12-05 10:54:10 -08:00
Victor Berchet
349ad75de3
fix(router): fix replaceUrl on RouterLink directives
2016-12-05 10:54:10 -08:00
Victor Berchet
f562cbf86c
fix(router): fix skipLocationChanges on RouterLink directives
...
fixes #13156
2016-12-05 10:54:10 -08:00
Victor Berchet
804943c9b1
refactor(router): cleanup RouterLink
2016-12-05 10:54:10 -08:00
André Werlang
a1322873c8
fix(facade): cache original format string ( #12764 )
2016-12-05 10:26:59 -08:00
Sarun Rattanasiri
b8c839bd51
docs(cheatsheet): correct HostBinding decorator example ( #13206 )
2016-12-05 10:25:40 -08:00
Chuck Jazdzewski
6cf7a1bf84
refactor(build): fix build location of compiler-cli esm module ( #13212 )
2016-12-02 15:19:52 -08:00
Victor Savkin
d46b8deeea
fix(router): runs guards every time when unsuccessfully navigating to the same url over and over again ( #13209 )
2016-12-02 15:19:00 -08:00
Dzmitry Shylovich
bbb7a39414
fix(router): allow specifying a matcher wihtout specifying a path
...
fixes #12972
2016-12-02 15:03:59 -08:00
Victor Berchet
d7d8fab211
refactor(router): cleanup config
2016-12-02 15:03:59 -08:00
Sarun Rattanasiri
51b06924bd
docs(core): correct HostListener typo ( #13203 )
2016-12-02 14:45:47 -08:00
Chuck Jazdzewski
3ff6554cbc
fix(language-service): update to use `CompilerHost` from compiler-cli ( #13189 )
2016-12-02 14:34:16 -08:00
Bowen Ni
dfd8140084
Fix format
2016-12-02 14:31:55 -08:00
Bowen Ni
6ea3ab7e14
Fix exit code. Give a specific type. Add test cases.
2016-12-02 14:31:55 -08:00
Bowen Ni
9761db5ac2
refactor(compiler): change ngc error handling
...
Do not print stack trace for user errors
Print stack trace for compiler internal errors
2016-12-02 14:31:55 -08:00
Tobias Bosch
75d1617b63
fix(compiler): include the summaries of reexported modules / directives / pipes ( #13196 )
...
Only if these are not part of the sources.
2016-12-02 10:08:46 -08:00
Tobias Bosch
614a35d539
feat(compiler): read and write `.ngsummary.json` files
...
When compiling libraries, this feature extracts the minimal information
from the directives/pipes/modules of the library into `.ngsummary.json` files,
so that applications that use this library only need to be recompiled
if one of the summary files change, but not on every change
of the libraries (e.g. one of the templates).
Only works if individual codegen for libraries is enabled,
see the `generateCodeForLibraries: false` option.
Closes #12787
2016-12-01 14:49:52 -08:00
Tobias Bosch
9ab401f4d3
refactor(compiler): simplify `NgModuleSymmaryMetadata`
...
- merge `NgModuleInjectorSummary` and `NgModuleDirectiveSummary`
- remove `directiveLoaders` from the summary
2016-12-01 14:49:52 -08:00
Victor Berchet
82c81cd0d2
fix(common): make sure the plural category exists ( #13169 )
...
fixes #12379
2016-12-01 13:26:24 -08:00
liufc
12959f444c
refactor(router):remove unused parameter pathIndex ( #13180 )
2016-12-01 13:25:53 -08:00
Chuck Jazdzewski
25a6da244c
refactor(compiler-cli): refactor compiler host parameters ( #13147 )
2016-12-01 13:24:51 -08:00
Alex Rickabaugh
ae26504e84
fix(core): update peer dep on zone.js to ^0.7.2
2016-11-30 15:42:56 -08:00
Chuck Jazdzewski
2975d8933c
fix(language-service): harden against partial normalization of directives
2016-11-30 14:55:56 -08:00
Chuck Jazdzewski
43c0e9a6bb
fix(compiler): fix performance regression caused by 5b0f9e2
...
Fixes #13146
2016-11-30 14:55:56 -08:00
Alex Rickabaugh
f275f36081
fix(version): take all of version string after patch version
2016-11-30 14:25:11 -08:00
Victor Savkin
e628b66cca
feat(build): record angular version in the dom ( #13164 )
2016-11-30 13:52:08 -08:00
Tobias Bosch
3e73bea3e7
refactor(compiler): convert metadata classes used in summaries into interfaces ( #13123 )
...
Part of #12787
2016-11-30 10:52:51 -08:00
vsavkin
42cf06fa12
feat(router): add support for custom route reuse strategies
2016-11-29 23:21:41 -08:00
Misko Hevery
c4bbafc291
feat: upgrade zone.js to v0.7.1
2016-11-29 17:24:00 -08:00
Misko Hevery
2d6a003dba
feat: update RxJS peer dependency to 5.0.0-rc.4
...
Closes #13125
RxJS from beta-12 to rc.4, has removed the `cache`
operator. (See https://github.com/ReactiveX/rxjs/blob/master/CHANGELOG.md#breaking-changes-1 )
If your application relies on it, then we suggest
that you use the one from this gist:
https://gist.github.com/robwormald/19dea0c70a6e01aadced6731aed4f9f7
2016-11-29 16:27:33 -08:00
Tobias Bosch
627282d2c8
fix(compiler): correctly evaluate references to static functions ( #13133 )
2016-11-29 12:02:50 -08:00
Tobias Bosch
2f7492c986
refactor(compiler): remove unneeded fields from metadata
...
Removes `CompileIdentifierMetadata.name` / `.moduleUrl`,
as well as `CompileTypeMetadata.name / moduleUrl` and
`CompileFactoryMetadata.name / moduleUrl`.
2016-11-28 15:19:23 -08:00
Tobias Bosch
2452cd14e0
refactor(compiler): drop old codegen tests that run inside of `test.sh`
...
These tests were hard to maintain and only yielded little value,
now that we have the full integration with TypeScript.
2016-11-28 15:19:23 -08:00
Tobias Bosch
966bcbad5a
fix(compiler-cli): pin the version of `tsc-wrapped`
2016-11-28 15:18:56 -08:00
Flounn
94b8612e4e
Fix(http): invalidStateError response body
...
Check on null value failed with last version of mozilla.
Check on undefined type instead.
2016-11-28 14:36:32 -08:00
Brian Michalski
b2b72190f8
fix(common): update DatePipe to allow closure compilation
...
Quote the date formats to prevent closure renaming. These are specified as strings in templates using DatePipes and also need to be quoted here.
2016-11-28 14:36:12 -08:00
Tobias Bosch
f5c8e0989d
feat(core): properly support inheritance
...
## Inheritance Semantics:
Decorators:
1) list the decorators of the class and its parents in the ancestor first order
2) only use the last decorator of each kind (e.g. @Component / ...)
Constructor parameters:
If a class inherits from a parent class and does not declare
a constructor, it inherits the parent class constructor,
and with it the parameter metadata of that parent class.
Lifecycle hooks:
Follow the normal class inheritance model,
i.e. lifecycle hooks of parent classes will be called
even if the method is not overwritten in the child class.
## Example
E.g. the following is a valid use of inheritance and it will
also inherit all metadata:
```
@Directive({selector: 'someDir'})
class ParentDirective {
constructor(someDep: SomeDep) {}
ngOnInit() {}
}
class ChildDirective extends ParentDirective {}
```
Closes #11606
Closes #12892
2016-11-28 14:12:12 -08:00
Tim Blair
4a09251921
doc(common): fix a typo in async pipe
2016-11-28 14:11:45 -08:00
PatrickJS
36caaaa8e4
refactor(core): remove unused import
...
APP_ID was removed after 2.2.x
2016-11-28 14:11:25 -08:00
Pawel Kozlowski
808275a9d5
feat(core): expose destroy() method on ViewRef
2016-11-28 14:10:42 -08:00
Matias Niemelä
be3784c957
revert: fix(animations): blend in all previously transitioned styles into next animation if interrupted
...
This reverts commit ef96763fa4
.
2016-11-28 13:23:52 -08:00
vsavkin
7194fc2b9e
fix(language-service): make link check pass
2016-11-23 16:21:06 -08:00
Igor Minar
2a3ca7bfcf
fix(compiler-cli): fix paths in source maps to be relative
...
The change looks bigger than it really is because I reordered the properties to match other tsconfigs we have.
The only real change is removal of sourceRoot property.
Fixes #13040
2016-11-23 15:48:24 -08:00
Bowen Ni
4cbf8ccf05
Keep `console.log` that are not called during compilation.
2016-11-23 15:47:02 -08:00
Bowen Ni
a6c4490fce
Check if `console.error` is defined
2016-11-23 15:47:02 -08:00
Bowen Ni
2c02d34c05
refactor(lint): Don't allow console.log
...
Enable tslint check for `console.log` as a follow-up to
https://github.com/angular/angular/issues/13018
2016-11-23 15:47:01 -08:00
Tobias Bosch
6c2d931744
chore: make test.sh work again
...
Previously, `test.sh` relied on calling `build.sh` first
2016-11-23 14:23:05 -08:00
Chuck Jazdzewski
3e548de99d
Revert "fix(router): guards restor an incorrect url when used with skipLocationChange"
...
This reverts commit ad20d7d260
.
2016-11-22 13:31:33 -08:00
Pete Bacon Darwin
909268036b
test(upgrade): remove `setTimeout` from lifecycle hook tests ( #13027 )
...
* test(upgrade): remove unnecessary NO_ERRORS_SCHEMA
* test(upgrade): remove `setTimeout` from lifecycle hook tests
Closes #13019
2016-11-22 09:21:03 -08:00
Chuck Jazdzewski
519a324454
feat(language-service): add services to support editors ( #12987 )
2016-11-22 09:10:23 -08:00
Matias Niemelä
ef96763fa4
fix(animations): blend in all previously transitioned styles into next animation if interrupted ( #13014 )
...
Closes #13013
Closes #13014
2016-11-21 15:46:59 -08:00
Brian Michalski
7dcca307d9
fix(closure): quote date pattern aliases ( #13012 )
...
Quota the pattern aliases to prevent closure renaming. These are quoted in DatePipe and also need to be quoted here.
2016-11-21 11:45:48 -08:00
Chuck Jazdzewski
491d5a22a9
refactor(compiler): allow control of StaticSymbol lifetime ( #12986 )
2016-11-18 16:58:14 -08:00
Sammy Jelin
44572f114f
refactor(ngUpgrade): Small cleanup with Testability API and resumeBootstrap ( #12926 )
...
* With non-static ngUpgrade apps, callbacks to `whenStable` were being invoked with the wrong
context
* With non-static ngUpgrade apps, `resumeBootstrap` was being run outside the NgZone
* Remove redundent `whenStableContext` variable
Neither of the first two problems were actually causing bugs (as far as I know), but they *might*
have caused problems in the future.
Inspired by https://github.com/angular/angular/pull/12910 , but for non-static apps.
2016-11-18 14:30:47 -08:00
Brady Isom
1ef4696cb7
fix(upgrade): call ng1 lifecycle hooks ( #12875 )
2016-11-18 13:46:49 -08:00
Tobias Bosch
59d2b4c831
refactor(compiler): further minor fixes
2016-11-18 10:04:14 -08:00
Tobias Bosch
2a5bd2f345
refactor(compiler): Reintroduce `ReflectorHost` and move `Extractor` into `@angular/compiler`
2016-11-18 10:04:14 -08:00
Tobias Bosch
3c06a5dc25
refactor(comiler): various cleanups
2016-11-18 10:04:14 -08:00
Tobias Bosch
adeea5d86a
refactor(compiler): renames
...
- `NgHost` to `CompilerHost`
- `AotCompilerHost.resolveFileToImport` to `AotCompilerHost.fileNameToModuleName`
- `AotCompilerHoset.resolveImportToFile` to `AotCompilerHost.moduleNameToFileName`
2016-11-18 10:04:14 -08:00
Tobias Bosch
dddbb1c1cb
refactor(tsc-wrapped): collect all exported functions and classes and bump metadata version from 1 to 2
...
This is needed to resolve symbols without `.d.ts` files.
This bumps the version of the metadata from 1 to 2.
This adds logic into `ng_host.ts` to automatically upgrade
version 1 to version 2 metadata by adding the exported symbols
from the `.d.ts` file.
2016-11-18 10:04:14 -08:00
Tobias Bosch
bccf0e69dc
fix(compiler): fix versions of `@angular/tsc-wrapped`
2016-11-18 10:04:14 -08:00
Tobias Bosch
b15039d228
refactor(compiler): move symbol extraction to `AotCompiler`
2016-11-18 10:04:14 -08:00
Tobias Bosch
2235048432
refactor(compiler): add `createAotCompiler` factory
...
Also adds 2 more methods to the `AotCompilerHost`:
- `loadResource`
- `resolveFileToImport`
2016-11-18 10:04:14 -08:00
Tobias Bosch
484119e59f
refactor(compiler): remove `asset:` urls
...
These urls were just relicts from Dart.
2016-11-18 10:04:14 -08:00
Tobias Bosch
24099bdbd2
refactor(compiler): move `findDeclaration` into the `StaticReflector`
...
Previously, this was part of the `AotCompilerHost`.
The `AotCompilerHost` is now also greatly simplified.
2016-11-18 10:04:14 -08:00
Tobias Bosch
912ca44979
refactor(compiler): move `static_reflector` into `@angular/compiler` and rename files
...
- `src/runtime_compiler.ts` -> `src/jit/compiler.ts`
- `src/compiler.ts` -> `src/jit/compiler_factory.ts`
- `src/offline_compiler` -> `src/aot/compiler.ts`
Part of #12867
2016-11-18 10:04:14 -08:00
Alex Eagle
664a6273e1
feature(tsc-wrapped): add option for closure compiler JSDoc annotations
2016-11-18 09:37:40 -08:00
Tobias Bosch
fc5ac1ebc4
fix(benchmarks): use sanitized style values ( #12943 )
2016-11-17 15:18:10 -08:00
vsavkin
ad20d7d260
fix(router): guards restor an incorrect url when used with skipLocationChange
...
Closes #12825
2016-11-17 14:10:59 -08:00
vsavkin
602522beb2
fix(router): support redirects to named outlets
...
Closes #12740 , #9921
2016-11-17 14:10:59 -08:00
Chuck Jazdzewski
f340e1a414
fix(tools): fix error when running test.sh ( #12927 )
2016-11-16 13:35:31 -08:00
Chuck Jazdzewski
481c9b3258
refactor(compiler): allows synchronous retrieving of metadata ( #12908 )
...
Allows non-normalized metadata to be retrieved synchronously.
Related to #7482
2016-11-16 10:22:11 -08:00
Tobias Bosch
8b2dfb2eca
fix(core): support `ngTemplateOutlet` in production mode ( #12921 )
...
Fixes #12911
2016-11-16 10:00:18 -08:00
Peter Bacon Darwin
824ea8406c
docs(upgrade/static): improve API docs with examples
...
Closes #12717
2016-11-16 09:18:17 -08:00
Peter Bacon Darwin
1f96a93f59
chore(public_api): remove Angular 1 types from upgrade/static API
2016-11-16 09:18:10 -08:00
Peter Bacon Darwin
009d545787
chore(examples): add upgrade/static example
2016-11-16 09:18:10 -08:00
Peter Bacon Darwin
53c25210a6
chore(examples): support upgrade/static examples
2016-11-16 09:18:10 -08:00
Victor Savkin
927aa69726
fix(router): add a banner file for the router ( #12919 )
2016-11-16 09:17:19 -08:00
Dzmitry Shylovich
ce89039036
fix(platform_browser): fix disableDebugTools() ( #12918 )
2016-11-16 09:16:40 -08:00
Sammy Jelin
42198cd7d5
fix(ngUpgrade): make AoT ngUpgrade work with the testability API and resumeBootstrap() ( #12910 )
2016-11-16 01:04:56 -08:00
Victor Savkin
773b31de8f
fix(router): should not create a route state if navigation is canceled ( #12868 )
...
Closes #12776
2016-11-15 19:00:20 -08:00
Dzmitry Shylovich
f79b320fc4
refactor(forms): remove facade ( #12558 )
2016-11-15 18:48:34 -08:00
vsavkin
6a212fd561
fix(router): removes a peer dependency from router to upgrade
2016-11-15 18:37:08 -08:00
Matias Niemelä
be010a292a
fix(animations): only pass in same typed players as previous players into web-animations ( #12907 )
...
Closes #12907
2016-11-15 17:47:21 -08:00
Dzmitry Shylovich
7c36e7f956
chore(router): remove @angular/upgrade peer dep ( #12896 )
2016-11-15 14:00:11 -08:00
João Dias
13ba2f90b9
refactor(http): remove all facade methods from http module ( #12870 )
2016-11-15 09:19:14 -08:00
Alex Eagle
75277cd94b
fix(tsickle): support ctorParams in function closure ( #12876 )
...
See https://github.com/angular/tsickle/issues/261 for context.
2016-11-15 09:19:00 -08:00
Dzmitry Shylovich
46d150266b
feat(router_link): add skipLocationChange and replaceUrl inputs ( #12850 )
2016-11-14 18:30:13 -08:00
Tobias Bosch
1b5384ee54
feat(core): expose `ViewRef` as `ChangeDetectorRef`
...
closes #12722
This is helpful when manually dirty checking embedded views.
2016-11-14 17:01:41 -08:00
Tobias Bosch
9f7d32a326
feat(core): add `attachView` / `detachView` to ApplicationRef
...
This feature is useful to allow components / embedded views
to be dirty checked if they are not placed in any `ViewContainer`.
Closes #9293
2016-11-14 17:01:35 -08:00
Matias Niemelä
9de76ebfa5
fix(animations): retain styling when transition destinations are changed ( #12208 )
...
Closes #9661
Closes #12208
2016-11-14 16:59:06 -08:00
Dzmitry Shylovich
46023e4792
fix(select): allow for null values in HTML select options bound with ngValue
...
closes #12829
2016-11-14 16:47:14 -08:00
Craig Hutchison
b55aaf094f
fix: allow for null values in HTML select options bound with ngValue
...
This corrects the case of <option [ngValue]="null"> binding a string like "{0: null}" to the model instead of an actual null object.
Closes #10349
2016-11-14 16:47:09 -08:00
Craig Hutchison
d90b622fa4
fix: allow for null values in HTML select options bound with ngValue
...
This corrects the case of <option [ngValue]="null"> binding a string like "{0: null}" to the model instead of an actual null object.
Closes #10349
2016-11-14 16:47:09 -08:00
Victor Berchet
79e2bb9291
refactor(core): remove dead code ( #12871 )
2016-11-14 16:44:25 -08:00
Victor Berchet
efbbefd353
fix(platform-browser): enable AOT
...
closes #12783
2016-11-14 12:57:11 -08:00
vsavkin
c2fae72bc6
feat(router): register router with ngprobe
2016-11-14 12:57:05 -08:00
Victor Berchet
7908679c4b
fix(compiler): assert xliff messages have translations
...
fixes #12815
closes #12604
2016-11-14 12:55:56 -08:00
Victor Berchet
9ed9ff40b3
test(compiler): improve xliff tests
2016-11-14 12:55:48 -08:00
Victor Berchet
2f14415836
fix(compiler): updates hash algo for xmb/xtb files
2016-11-14 12:55:48 -08:00
Victor Berchet
76e4911e8b
fix(core): fix placeholders handling in i18n.
...
Prior to this commit, translations were built in the serializers. This
could not work as a single translation can be used for different source
messages having different placeholder content.
Serializers do not try to replace the placeholders any more.
Placeholders are replaced by the translation bundle and the source
message is given as parameter so that the content of the placeholders is
taken into account.
Also XMB ids are now independent of the expression which is replaced by
a placeholder in the extracted file.
fixes #12512
2016-11-14 12:55:48 -08:00
Victor Berchet
ed5e98d0df
fix(core): misc i18n fixes
2016-11-14 12:55:48 -08:00
Victor Berchet
146af1fed9
refactor(core): simplify i18n serializers code
2016-11-14 12:55:48 -08:00
Victor Berchet
c60ba7a72f
refactor(core): remove ListWrapper from i18n
2016-11-14 12:55:48 -08:00
Victor Berchet
05beffe0d0
test(core): fix a typo in the i18n integration spec
2016-11-14 12:55:48 -08:00
Victor Berchet
08c038ebd9
fix(core): xmb serializer uses decimal messaged IDs
...
fixes #12511
2016-11-14 12:55:48 -08:00
Victor Berchet
582550a90d
feat(core): implements a decimal fingerprint for i18n
2016-11-14 12:55:48 -08:00
Dzmitry Shylovich
1d53a870dd
fix(http): return request url if it cannot be retrieved from response
...
closes #12837
2016-11-14 12:54:43 -08:00
Dzmitry Shylovich
a0c58a6b5c
fix(http): correctly handle response body for 204 status code
...
closes #12830
fixes #12393
2016-11-14 12:36:22 -08:00
Dzmitry Shylovich
d3eff6c483
refactor(xhr_backend): remove facade
2016-11-14 12:36:16 -08:00
Joao Dias
77ee27c59e
refactor(): use const and let instead of var
2016-11-12 16:40:17 -08:00
Ferhat
73593d4bf3
perf(platform-browser): cache plugin resolution in the EventManager
...
closes #12824
2016-11-11 17:19:47 -08:00
Chuck Jazdzewski
a965d11cce
fix(compiler): generate safe access strictNullChecks compatible code ( #12800 )
...
fixes #12795
2016-11-11 17:12:17 -08:00
Victor Savkin
52be848f94
fix(router): incorrect injector is used when instantiating components loaded lazily ( #12817 )
2016-11-11 17:12:00 -08:00
Tobias Bosch
69dfcf7385
docs(forms): add inline docs why `ngModel` runs a 2nd change detection run ( #12821 )
...
Related to #11895
2016-11-11 15:24:11 -08:00
Dzmitry Shylovich
785b7b640e
fix(router): Route.isActive also compares query params ( #12321 )
2016-11-11 13:23:47 -08:00
vsavkin
e5a753e111
fix(router): router should not swallow "unhandled" errors
...
closes #12802
2016-11-11 13:22:19 -08:00
Dzmitry Shylovich
768cddbe62
fix(events): provide the ability to register global hammer.js events
...
closes #12797
2016-11-11 11:15:49 -08:00
Dzmitry Shylovich
92f244aa26
refactor(events): remove facade and clean up
2016-11-11 11:15:43 -08:00
Michael Seemann
2a4bf9a0df
fix(router): avoid router initialization for non root components
...
closes #12338
closes #12814
2016-11-11 11:15:17 -08:00
Victor Berchet
45ddd6ba78
cleanup(forms): remove facade ( #12804 )
2016-11-11 10:47:34 -08:00
Dzmitry Shylovich
7886561997
fix(router): check if windows.console exists before using it ( #12348 )
2016-11-11 10:46:53 -08:00
André Werlang
752edca81b
test(core): ngOnDestroy called before output events are detached ( #9946 )
...
closes #6984
closes #5436
2016-11-11 10:27:32 -08:00
Victor Berchet
1bd858fb43
build(examples): upgrade to protractor 4.0.9 ( #12803 )
...
closes #12798
2016-11-10 18:13:11 -08:00
Tobias Bosch
fcb4e66493
refactor(compiler): introduce summaries for metadata ( #12799 )
...
This does not yet introduce loading / serialization of summaries.
Part of #12787
2016-11-10 16:27:53 -08:00
Victor Berchet
ef881475e9
fix(forms): check if registerOnValidatorChange exists on validator before trying to invoke it ( #12801 )
...
closes #12593
2016-11-10 16:20:59 -08:00
Bruno da Silva joão
2aba8b0ff2
fix(common): no TZ Offset added by DatePipe for dates without time ( #12380 )
2016-11-10 14:57:04 -08:00
Dzmitry Shylovich
77dc1ab675
fix(router): throw an error when encounter undefined route ( #12389 )
2016-11-10 14:55:10 -08:00
Dzmitry Shylovich
3052fb234f
fix(router): ignore null or undefined query parameters ( #12333 )
2016-11-10 14:41:19 -08:00
Tobias Bosch
79383ce150
refactor(compiler): never create CompileDirectiveMetadata with not loaded resources ( #12788 )
...
Part of #12787
2016-11-10 14:07:30 -08:00
Chuck Jazdzewski
c3c0e2e2a2
refactor(compiler): add `span` to `TemplateBinding` ( #12792 )
...
fix(compiler): corrected error location for implicit templates expressions
2016-11-10 13:15:09 -08:00
Joao Dias
44a142fc02
chore(playground): use base64-js from npm
...
closes #12471
2016-11-10 12:08:04 -08:00
Joao Dias
3d9d839c6c
refactor(playground): make playground great again
2016-11-10 12:07:51 -08:00
Matias Niemelä
19e869e7c9
fix(animations): ensure animations work with web-workers ( #12656 )
2016-11-10 11:53:50 -08:00
Chuck Jazdzewski
7cab30f85d
refactor(compiler-cli): add position data to static reflector errors ( #12782 )
2016-11-09 16:29:22 -08:00
vsavkin
73407351e7
feat(router): add support for custom url matchers
...
Closes #12442
Closes #12772
2016-11-09 16:24:58 -08:00
vsavkin
2c110931f8
fix(router): do not require the creation of empty-path routes when no url left
...
Closes #12133
2016-11-09 16:24:49 -08:00
Victor Berchet
2ced2a8a5a
refactor(compiler): misc updates ( #12773 )
2016-11-09 16:23:41 -08:00
Pawel Kozlowski
634b3bb88b
feat(core): map 'for' attribute to 'htmlFor' property ( #10546 )
...
This improves ergonomics a bit by allowing people to write:
`<label [for]="ctxProp"></label>`.
This is similar to the existing class -> className mapping.
Closes #7516
2016-11-09 15:21:27 -08:00
Chuck Jazdzewski
4595a61aeb
refactor(compiler-cli): refactor imports in codegen to enable rollup ( #12781 )
2016-11-09 15:17:24 -08:00
Matias Niemelä
f80a157b65
fix(animations): ensure web-animations are caught within the Angular zone
...
Closes #11881
Closes #11712
Closes #12355
Closes #11881
Closes #12546
Closes #12707
Closes #12774
2016-11-09 15:16:34 -08:00
Victor Savkin
6e35d13fbc
feat(router): add a provider making angular1/angular2 integration easier ( #12769 )
2016-11-09 13:33:33 -08:00
Matias Niemelä
fe35bc34f6
fix(animations): allow animations to be destroyed manually ( #12719 )
...
Closes #12456
Closes #12719
2016-11-08 16:21:28 -08:00
Tobias Bosch
ad3bf6c54f
fix(core): apply host attributes to root elements ( #12761 )
...
Fixes #12744
2016-11-08 15:46:55 -08:00
Matias Niemelä
a0e9fde653
fix(animations): always normalize style properties and values during compilation ( #12755 )
...
Closes #11582
Closes #12481
Closes #12755
2016-11-08 15:45:30 -08:00
Dzmitry Shylovich
3dc61779f0
fix(DatePipe): handle empty string ( #12374 )
2016-11-08 15:45:12 -08:00
Dzmitry Shylovich
09092ac3c2
fix(forms): getRawValue returns any instead of Object ( #12599 )
2016-11-08 15:44:36 -08:00
Victor Berchet
778e6ad3b4
refactor: cleanup ICU message syntax
2016-11-08 15:44:18 -08:00
Victor Berchet
55dc0e4a5f
fix(compiler): use the other case by default in ICU messages
2016-11-08 15:44:18 -08:00
Victor Berchet
4708b248d5
fix(common): I18nSelectPipe selects other case on default
2016-11-08 15:44:18 -08:00
Victor Berchet
7694f974af
refactor: remove some facades ( #12731 )
2016-11-08 15:43:24 -08:00
Victor Berchet
acbf1d859c
fix(core): fix pseudo-selector shimming ( #12754 )
...
fixes #12730
fixes #12354
2016-11-07 13:56:04 -08:00
Pawel Kozlowski
f3793b5953
fix(NgClass): throw a descriptive error when CSS class is not a string ( #12662 )
...
Fixes #12586
2016-11-07 12:23:31 -08:00
Pawel Kozlowski
22c021c57f
fix(compiler): support more than 9 interpolations ( #12710 )
...
Fixes #10253
2016-11-07 12:23:03 -08:00
Tobias Bosch
d8f23f4b7f
fix(common): `NgSwitch` - don’t create the default case if another case matches ( #12726 )
...
This also simplifies the implementation of `NgSwitch`.
Closes #11297
Closes #9420
2016-11-07 12:22:36 -08:00
liufc
89fd54e8e3
docs(url_tree):fix typo(UrlSegment path property's comment part -> path) ( #12728 )
2016-11-07 10:27:47 -08:00
Alex Eagle
77cbf7f2bb
fix(closure): suppress two more closure compiler checks in codegen ( #12698 )
2016-11-04 15:18:05 -07:00
Matias Niemelä
383f23b578
fix(animations): always trigger animations after the change detection check ( #12713 )
...
This patch ensures that animations are run outside of change detection
thus allowing for start and done callbacks to modify application data
without causing a cycle loop.
Closes #12713
2016-11-04 15:15:27 -07:00
Victor Berchet
2a3f4d7b17
refactor: kill MapWrapper
2016-11-04 13:27:38 -07:00
Victor Berchet
ec92f4b198
refactor: remove `keys()` and `values()` from MapWrapper
2016-11-04 13:27:38 -07:00
Alex Rickabaugh
121e5080aa
fix(http): preserve header case when copying headers ( #12697 )
2016-11-04 13:26:38 -07:00
Georgios Kalpakas
fe1d0e29c5
feat(UpgradeComponent): add support for `require`
...
This commit also adds/improves/fixes some `UpgradeComponent` tests.
2016-11-04 11:16:28 -07:00
Georgios Kalpakas
469010ea8e
feat(UpgradeComponent): add/improve support for lifecycle hooks
...
Add support for the `$postDigest()` and `$onDestroy()` lifecycle hooks.
Better align the behavior of the `$onChanges()` and `$onInit()` lifecycle hooks
with Angular 1.x:
- Call `$onInit()` before pre-linking.
- Always instantiate the controller before calling `$onChanges()`.
2016-11-04 11:16:28 -07:00
Pawel Kozlowski
f0cdb428f5
fix(compiler): don't convert undefined to null literals ( #11503 )
...
Fixes #11493
2016-11-04 10:55:21 -07:00
Tobias Bosch
051d74802a
fix(core): ensure that component views that have no bindings recurse into nested components / view containers.
2016-11-04 10:50:27 -07:00
Tobias Bosch
f2bbef3e33
fix(core): allow to query content of templates that are stamped out at a different place
...
Previously, if a `TemplateRef` was created in a `ViewContainerRef`
at a different place, the content was not query able at all.
With this change, the content of the template can be queried
as if it was stamped out at the declaration place of the template.
E.g. in the following example, the `QueryList<ChildCmp>` will
be filled once the button is clicked.
```
@Component({
selector: ‘my-comp’,
template: ‘<button #vc (click)=“createView()”></button>’
})
class MyComp {
@ContentChildren(ChildCmp)
children: QueryList<ChildCmp>;
@ContentChildren(TemplateRef)
template: TemplateRef;
@ViewChild(‘vc’, {read: ViewContainerRef})
vc: ViewContainerRef;
createView() {
this.vc.createEmbeddedView(this.template);
}
}
@Component({
template: `
<my-comp>
<template><child-cmp></child-cmp></template>
</my-comp>
`
})
class App {}
```
Closes #12283
Closes #12094
2016-11-04 10:50:27 -07:00
Tobias Bosch
e3687706c7
refactor(compiler): minor cleanup
2016-11-03 16:29:51 -07:00
Tobias Bosch
648ce5981b
perf(core): don’t use `DomAdapter` nor zone for regular events
2016-11-03 16:29:51 -07:00
Tobias Bosch
9c23884da4
perf(compiler): introduce direct rendering
...
This allows to attach / detach embedded views and projected nodes
in a faster way.
2016-11-03 16:29:51 -07:00
Tobias Bosch
d708a8859c
perf(platform-browser): don’t use `DomAdapter` any more
...
But use the DOM apis directly.
This also creates a separate `ServerRenderer` implementation
for `platform-server` as it previously reused the `BrowserRenderer`.
2016-11-03 16:29:51 -07:00
Victor Savkin
9ddf9b3d3d
fix(router): advance a route only after its children have been deactivated ( #12676 )
...
Closes #11715
2016-11-03 16:26:10 -07:00
gaohailang
69f006cd89
docs(change_detection): fix typo(ChangeDetectorStatus enum comment CheckedOnce -> CheckOnce) ( #12683 )
2016-11-03 11:23:20 -07:00
Trotyl Yu
4aaae3eada
docs(common): fix a typo in ngStyle API docs
2016-11-03 10:27:05 -07:00
André Werlang
2e78b76fcf
fix(router): resolve guard observables on the first emit ( #10412 )
2016-11-02 21:56:04 -07:00
danielcrisp
b2cf379d1c
fix(enableDebugTools): create AngularTools by merging into context.ng ( #12003 )
...
When using `enableDebugTools` the tools are merged into `context.ng` to prevent `ng.probe` and `ng.coreTokens` from being clobbered.
Fixes #12002
2016-11-02 21:55:49 -07:00
CorvusCorrax
e25baa08b3
fix(router): correctly export concatMap operator in es5 ( #12430 )
2016-11-02 21:55:02 -07:00
Alex Eagle
7103754178
fix(closure): suppress closure compiler suspiciousCode check in codegen ( #12666 )
2016-11-02 21:11:30 -07:00
Tobias Bosch
1a069e8372
refactor(compiler): cleanups
2016-11-02 20:58:48 -07:00
Tobias Bosch
0fc11a43f1
perf(core): use `array.push` / `array.pop` instead of `splice` if possible
2016-11-02 20:58:48 -07:00
Tobias Bosch
0e3d655220
refactor(compiler): remove view factories, use view classes directly
2016-11-02 20:58:48 -07:00
Tobias Bosch
7c5cc9bc41
refactor(compiler): initialize `RenderComponentType` eagerly
...
This moves the usage of `APP_ID` into the `DomRenderer`.
2016-11-02 20:58:48 -07:00
Tobias Bosch
5f1dddc5d0
refactor(compiler): cleanups
2016-11-02 17:06:27 -07:00
Tobias Bosch
20a4f9923f
refactor(compiler): remove `view.parentInjector`
2016-11-02 17:06:27 -07:00
Tobias Bosch
e7c00be19d
refactor(compiler): rename `AppElement` into `ViewContainer`
2016-11-02 17:06:27 -07:00
Tobias Bosch
74ede9aa9b
refactor(core): don’t store view factory in `TemplateRef`
...
Instead, generate `createEmbeddedView`.
2016-11-02 17:06:27 -07:00
Tobias Bosch
d1035da85c
refactor(compiler): don’t use `AppElement`s for creating component views
2016-11-02 17:06:27 -07:00
Tobias Bosch
13533d2a30
refactor(compiler): remove `AppElement.initComponent`
2016-11-02 17:06:27 -07:00
vsavkin
d509ee078b
fix(router): reset URL to the stable state when a navigation gets canceled
...
Closes #10321
2016-11-02 12:25:23 -07:00
vsavkin
8e221b826f
fix(router): routerLink should not prevent default on non-link elements
2016-11-02 12:25:23 -07:00
vsavkin
830a780cb3
fix(router): CanDeactivate receives a wrong component
...
Closes #12592
2016-11-02 12:25:23 -07:00
Tobias Bosch
6fda97287e
fix(compiler): support multiple components in a view container
2016-11-01 14:21:40 -07:00
Tobias Bosch
234c5599f1
refactor(compiler): remove unused constructor query support
2016-11-01 11:29:15 -07:00
Tobias Bosch
f6710fefeb
refactor(compiler): make `view.disposable` array null if empty
2016-11-01 11:29:15 -07:00
Tobias Bosch
bda1909ede
refactor(compiler): remove `view.rootNodes` and `view.projectableNodes`
...
They are replaced by generated visitor functions `view.visitRootNodes` / `view.visitProjectableNodes`.
2016-11-01 11:29:15 -07:00
Tobias Bosch
b3e3cd3add
refactor(compiler): inline `view.contentChildren`
2016-11-01 11:29:14 -07:00
Tobias Bosch
e5fdf4c70a
refactor(compiler): inline view.viewChildren in generated code
2016-11-01 11:29:14 -07:00
Tobias Bosch
97471d74b6
refactor(compiler): remove unused `subscriptions` in view
2016-11-01 11:29:14 -07:00
Austin Miller
1de04b23b1
fix(router): call data observers when the path changes
2016-11-01 11:28:43 -07:00
Tobias Bosch
a178bc6c83
fix(compiler): dedupe NgModule declarations, …
...
This is important so that we don’t generate things multiple times.
2016-10-31 14:43:50 -07:00
Tobias Bosch
642c1db9ef
fix(compiler): Don’t throw on empty property bindings
...
Closes #12583
2016-10-31 14:43:50 -07:00
Joao Dias
579deeb9c5
style(platform-browser): clean up hammer gestures
2016-10-31 14:43:05 -07:00
Joao Dias
bad58824a0
refactor(playground): update gestures playground to use latest hammer.js
2016-10-31 14:43:04 -07:00
Joao Dias
5494169fb4
style: make internal members accessibility explicit
2016-10-31 14:25:53 -07:00
Joao Dias
5a3d7a62a2
style: merge imports from the same modules
2016-10-31 14:25:53 -07:00
Joao Dias
a382d6dd20
style: add missing semicolons
2016-10-31 14:25:53 -07:00
Joao Dias
52bf188b8f
style: add missing copyright headers
2016-10-31 14:25:53 -07:00
Zaven Muradyan
e9fd8645ed
fix(core): improve error when multiple components match the same element
...
Closes #7067
2016-10-31 11:28:03 -07:00
Joao Dias
e0ad413a8e
style(tests): clean up testing_public_spec ( #11452 )
2016-10-31 11:26:38 -07:00
Michael George Attard
3045d02b9a
docs(pipes): minor fix and improvements
2016-10-31 12:39:21 +01:00
Joao Dias
e86573bac8
chore(lint): replace gulp check-task with tslint no-jasmine-focus rule
...
fixes #11800
2016-10-28 15:53:15 -07:00
Victor Berchet
7b8dae19af
refactor(facade): cleanup Intl facade
2016-10-28 15:52:52 -07:00
Thomas Shafer
7c16ef942e
feat(core): add the find method to QueryList
2016-10-28 15:34:47 -07:00
Thomas Shafer
a318b57257
refactor(core): removed extraneous interface from QueryList test
2016-10-28 15:34:47 -07:00
vsavkin
fe47e6b783
fix(router): rerun resolvers when url changes
...
Closes #12603
2016-10-28 15:17:00 -07:00
vsavkin
091c390032
fix(router): run navigations serialy
...
Closes #11754
2016-10-28 14:56:08 -07:00
Tobias Bosch
e391cacdf9
fix(compiler): don’t double bind functions
...
This fixes a performance regressions introduced by 178fb79b5c
.
Also makes properties in the directive wrapper private
so that closure compiler can minify them better.
2016-10-28 11:17:12 -07:00
Tobias Bosch
32feb8a532
refactor(compiler): generate host listeners in DirectiveWrappers
...
Part of #11683
2016-10-27 16:09:01 -07:00
Victor Berchet
d520fae70e
refactor(upgrade): spec cleanup
2016-10-27 12:12:55 -07:00
Bruno Trigueiro
fa93fd672e
fix(upgrade): silent bootstrap failures
...
fixes #12062
2016-10-27 12:12:54 -07:00
Alex Eagle
a26dd28bdb
refactor(upgrade): re-export the new static upgrade APIs on new entry
...
Add upgrade-static.umd.js bundles
This allows depending on it without getting a transitive dependency on compiler.
BREAKING CHANGE:
Four newly added APIs in 2.2.0-beta:
downgradeComponent, downgradeInjectable, UpgradeComponent, and UpgradeModule
are no longer exported by @angular/upgrade.
Import these from @angular/upgrade/static instead.
2016-10-26 15:14:22 -07:00
Jan Kuri
7742ec00e7
fix: remove double exports of template_ast
2016-10-26 15:14:00 -07:00
Justin James
2b5c983c13
docs(reset): change semi-colon to colon in code example
...
The first code example for the reset function was invalid as it has a semi-colon instead of a colon for the last property in the json object. Change the semi-colon to a colon.
Closes https://github.com/angular/angular/issues/12531
2016-10-26 14:56:57 -07:00
Victor Berchet
ef153649b3
fix(compiler-cli): fix types
2016-10-26 14:56:27 -07:00
Dzmitry Shylovich
d321b0ebf5
fix(selectors): use Maps instead of objects
2016-10-26 14:55:59 -07:00
Barna Tóth
b4265e0685
fix(xsrf): overwrite already set xsrf header
2016-10-26 14:55:24 -07:00
Tobias Bosch
178fb79b5c
refactor(compiler): move host properties into DirectiveWrapper
...
Part of #11683
2016-10-26 14:32:24 -07:00
Tobias Bosch
5a7a58b1e0
refactor(compiler): make arguments in `InlineArray` optional.
2016-10-26 14:32:24 -07:00
Tobias Bosch
f66ac821a2
refactor(compiler): extract `createCheckBindingStmt` into `compiler_util`
...
Part of #11683
2016-10-26 14:32:24 -07:00
Tobias Bosch
fe299f4dfc
refactor(compiler): minor cleanups
2016-10-26 14:32:24 -07:00
Tobias Bosch
4cac650675
refactor(compiler): extract expression evaluation and writing to renderer from view_compiler
...
This is needed to that `DirectiveWrapper`s can also use them later on.
Part of #11683
2016-10-26 14:32:24 -07:00
Tobias Bosch
cb7643ccea
refactor(compiler): introduce `ClassBuilder`.
...
Part of #11683
2016-10-26 14:32:23 -07:00
Tobias Bosch
faa3478514
refactor(compiler): set element attributes via one call
...
This makes the cost of using directives that have host attributes
smaller.
Part of #11683
2016-10-26 14:32:23 -07:00
Tobias Bosch
bc3f4bc816
refactor(compiler): extract BindingParser
...
Needed so that we can parse directive host bindings independent of templates.
Part of #11683
2016-10-26 14:32:23 -07:00
Jeremy Elbourn
c9f58cf78c
feat(router): export routerLinkActive w/ isActive property
2016-10-26 14:08:22 -07:00
vsavkin
6ccbfd41dd
fix(router): preserve resolve data
...
Closes #12306
2016-10-26 13:53:00 -07:00
vsavkin
7d2554baa1
tests(router): add a test showing how to handle resovle errors
2016-10-26 13:52:59 -07:00
vsavkin
52a853e257
fix(router): change router not to deactivate aux routes when navigating from a componentless routes
2016-10-26 13:52:59 -07:00
vsavkin
8f2fa0f766
fix(router): disallow component routes with named outlets
...
Closes #11208 , #11082
2016-10-26 13:52:59 -07:00
vsavkin
fc60fa790c
fix(router): add a test to make sure canDeactivate guards are called for aux routes
...
Closes #11345
2016-10-26 13:52:58 -07:00
vsavkin
b74185369f
fix(router): canDeactivate guards are not triggered for componentless routes
...
Closes #12375
2016-10-26 13:52:58 -07:00
Victor Berchet
7221632228
fix(CompilerCli): assert that all pipes and directives are declared by a module
2016-10-25 18:17:18 -07:00
michaelgeorgeattard
02f1222a8d
docs(common): minor corrections/improvements for NgClass ( #12327 )
2016-10-25 00:12:09 +02:00
Uri Shaked
c27ce7318f
doc(compiler-cli): align example with style guide ( #12414 )
...
See The Angular Style Guide, [Section 2.2 - Separate File Names with Dots and Dashes](https://angular.io/docs/ts/latest/guide/style-guide.html#!#02-02 )
2016-10-25 00:10:03 +02:00
Victor Berchet
a838aba756
fix(compiler): walk third party modules ( #12453 )
...
fixes #11889
fixes #12428
2016-10-24 22:28:23 +02:00
Martin Probst
bfc97ff2cd
refactor(i18n): extract Extractor from extract_i18n ( #12417 )
...
I put an extractor into your extract so you can extract while you
extract.
This allows integrators to call Extractor as a library. Also refactors
Extractor a bit so that callers need fewer arguments or arguments that
are at the right semantic level.
The refactoring causes no function change.
2016-10-21 15:17:57 -07:00
Victor Berchet
57051f01ce
refactor: remove most facades ( #12399 )
2016-10-21 15:14:44 -07:00
Tobias Bosch
867494a060
fix(compiler): don't access view local variables nor pipes in host expressions ( #12396 )
...
Fixes #12004
Closes #12071
2016-10-20 15:24:58 -07:00
Daniel Leib
da5fc696bb
fix(router): do not update primary route if only secondary outlet is given ( #11797 )
2016-10-20 10:59:08 -07:00
Victor Savkin
b44b6ef8f5
fix(router): module loader should start compiling modules when stubbedModules are set ( #11742 )
2016-10-20 10:58:53 -07:00
vsavkin
0f21a5823b
cleanup(router): add a test verifying than NavigationEnd is not emitted after NavigationCancel
2016-10-20 10:56:12 -07:00
vsavkin
5ae6915600
fix(router): fix lazy loading triggered by redirects from wildcard routes
...
Closes #12183
2016-10-20 10:56:12 -07:00
Victor Savkin
8b9ab44eee
feat(router): add support for ng1/ng2 migration ( #12160 )
2016-10-20 10:44:44 -07:00
Tobias Bosch
b0a03fcab3
refactor(compiler): introduce directive wrappers to generate less code
...
- for now only wraps the `@Input` properties and calls
to `ngOnInit`, `ngDoCheck` and `ngOnChanges` of directives.
- also groups eval sources by NgModule.
Part of #11683
2016-10-20 10:41:43 -07:00
Tobias Bosch
c951822c35
refactor(compiler): don’t use the `OfflineCompiler` in extract_i18n
2016-10-20 10:41:43 -07:00
Tobias Bosch
acda82c1ed
refactor(compiler): remove private exports
...
All of `@angular/compiler` is private, so we can export
everything we need directly.
2016-10-20 10:41:43 -07:00
Peter Bacon Darwin
d6791ff0e0
feat(ngUpgrade): add support for AoT compiled upgrade applications
...
This commit introduces a new API to the ngUpgrade module, which is compatible
with AoT compilation. Primarily, it removes the dependency on reflection
over the Angular 2 metadata by introducing an API where this information
is explicitly defined, in the source code, in a way that is not lost through
AoT compilation.
This commit is a collaboration between @mhevery (who provided the original
design of the API); @gkalpak & @petebacondarwin (who implemented the
API and migrated the specs from the original ngUpgrade tests) and @alexeagle
(who provided input and review).
This commit is an starting point, there is still work to be done:
* add more documentation
* validate the API via internal projects
* align the ngUpgrade compilation of A1 directives closer to the real A1
compiler
* add more unit tests
* consider support for async `templateUrl` A1 upgraded components
Closes #12239
2016-10-19 15:27:49 -07:00
Victor Berchet
76dd026447
refactor: remove some facades ( #12335 )
2016-10-19 13:42:39 -07:00
shaul almog
0e9503b500
feat(forms) range values need to be numbers instead of strings ( #11792 )
2016-10-19 10:12:13 -07:00
Andrei Tserakhau
f77ab6a2d2
feat(datePipe): support narrow forms for month and weekdays ( #12297 )
...
Closes #12294
2016-10-19 10:05:13 -07:00
Pawel Kozlowski
97bc97153b
feat(forms): add ng-pending CSS class during async validation ( #11243 )
...
Closes #10336
2016-10-19 09:56:31 -07:00
Dzmitry Shylovich
445e5922ec
feat(forms): make 'parent' a public property of 'AbstractControl' ( #11855 )
2016-10-19 09:55:50 -07:00
Florian Kinder
b9fc090143
feat(forms): Added emitEvent to AbstractControl methods ( #11949 )
...
* feat(forms): Added emitEvent to AbstractControl methods
* style(forms): unified named parameter
2016-10-19 09:54:54 -07:00
Cédric Exbrayat
592f40aa9c
feat(forms): add hasError and getError to AbstractControlDirective ( #11985 )
...
Allows cleaner expressions in template-driven forms.
Before:
<label>Username</label><input name="username" ngModel required #username="ngModel">
<div *ngIf="username.dirty && username.control.hasError('required')">Username is required</div>
After:
<label>Username</label><input name="username" ngModel required #username="ngModel">
<div *ngIf="username.dirty && username.hasError('required')">Username is required</div>
Fixes #7255
2016-10-19 09:49:02 -07:00
Tobias Bosch
24facdea2d
feat(benchmark): add large form benchmark
...
This benchmark tracks the generated file size for large forms
as well as the time to create and destroy many form fields.
2016-10-19 09:39:16 -07:00
Tobias Bosch
aa2d3372a5
fix(benchmarks): fix method name in targetable spec
2016-10-19 09:39:16 -07:00
Dzmitry Shylovich
bf60418fdc
feat(forms): Validator.pattern accepts a RegExp ( #12323 )
2016-10-19 09:37:54 -07:00
Alex Eagle
cca4a5c519
fix(compiler): don't redeclare a var in the same scope ( #12386 )
...
This is not allowed by Closure Compiler.
2016-10-18 20:28:30 -07:00
Matias Niemelä
6e5f8b59b3
fix(animations): generate aot code for animation trigger output events ( #12291 )
...
Closes #11707
Closes #12291
2016-10-18 17:16:51 -07:00
Martin Probst
8409b65153
fix(http): make normalizeMethodName optimizer-compatible. ( #12370 )
...
`normalizeMethodName` reflectively accessed the RequestMethod enum. With a smart
optimizer, properties from the enum could be removed or renamed, and so user
code just passing in e.g. 'PATCH' might not work. This change fixes the code to
be more explicit and avoids the optimizer issue.
2016-10-18 11:21:54 -07:00
Victor Berchet
38e2203b24
refactor(core): delete unused reflector code
2016-10-17 23:17:34 -07:00
Victor Berchet
bd1dcb5f11
fix(core): fix decorator defalut values
2016-10-17 23:17:34 -07:00
Victor Berchet
3993279527
fix(core): fix property decorators
...
fixes #12224
2016-10-17 23:17:34 -07:00
Victor Berchet
bf1e2613b2
refactor(core): cleanup decorators
2016-10-17 23:17:34 -07:00
Victor Berchet
f7db0668d1
refactor(core): simplify & cleanup reflection
2016-10-17 23:17:34 -07:00
Rob Wormald
27d76776b8
fix(router): correctly export filter operator in es5 ( #12286 )
2016-10-17 23:06:19 -07:00
Dzmitry Shylovich
8603d9c269
refactor(http): use Http.request for all http shorthand methods ( #12319 )
2016-10-17 23:04:25 -07:00
Ferdinand Malcher
d55f747858
docs(router): attribute notation for string paths ( #12205 )
...
Either bind an expression or use the attribute notation.
The mixed way `[routerLink]="/path"` won't work.
Prefer the attribute notation for string-only paths
2016-10-17 22:53:55 -07:00
John Anthony
d61ecf0663
docs(NgSwitch): fix mismatched tags in example ( #12270 )
2016-10-17 22:51:56 -07:00
Florian Kinder
15fc5dd7ee
test(forms): added missing selfOnly tests ( #12317 )
2016-10-17 22:51:13 -07:00
Michael George Attard
a5419608e0
docs(ngIf): minor improvements
2016-10-17 22:50:12 -07:00
Michael George Attard
5f95bf1dd2
refactor(common): remove redundant type
2016-10-17 22:50:12 -07:00
Matias Niemelä
33c8948fd3
refactor(animations): ensure animation data-structures are created only when used
...
Closes #12250
2016-10-14 15:43:41 -07:00
Victor Berchet
606e51881a
perf(benchmarks): update ng2-switch to match ng2
...
- use the ~same template layout (text nodes),
- use trackBy
both benchmark now show about the same perfs.
2016-10-12 17:11:46 -07:00
Victor Berchet
fdf4309b50
perf(common): optimize NgSwitch default case
...
relates to #11297
2016-10-12 17:11:46 -07:00
Victor Berchet
df1718d624
fix(compiler): allow WS as `<ng-content>` content ( #12225 )
2016-10-12 07:58:06 -07:00
Connor Wyatt
17e3410d98
Form submit event ( #11989 )
...
* feat(forms): ngSubmit event exposes $event from original submit event as local variable
Modify NgForm directive and FormGroup directive to expose the original submit event as $event in the ngSubmit event. Modify docs to reflect changes.
This resolves #10920 .
* refactor: code cleanup
2016-10-11 15:49:36 -07:00
Karl Seamon
5effc330ed
feat(upgrade): compilerOptions in bootstrap ( #10575 )
2016-10-11 15:48:08 -07:00
Victor Berchet
3df00828d7
docs(router): fix CanActivateChild API docs ( #12128 )
...
fixes #12127
2016-10-11 15:47:57 -07:00
Steve Sewell
8c477b2f45
fix(compiler-cli): don't clone static symbols when simplifying annotation metadata ( #12158 )
2016-10-11 15:47:44 -07:00
Victor Berchet
7787771aba
refactor(core): cleanup decorators.ts ( #12161 )
2016-10-11 15:47:20 -07:00
Chuck Jazdzewski
7275e1beb3
refactor(compiler): add optional `visit()` to `TemplateAstVisitor` ( #12209 )
2016-10-11 15:46:11 -07:00
Chuck Jazdzewski
12ba62e5e2
refactor(compiler): expose template parser phases ( #12210 )
2016-10-11 15:45:27 -07:00
Victor Berchet
e6e007e2f1
refactor(core): cleanup SpyObject ( #12221 )
2016-10-11 15:44:48 -07:00
Matias Niemelä
91dd138fa5
docs(animations): document :enter and :leave transition aliases ( #12222 )
2016-10-11 15:44:38 -07:00
Victor Berchet
d972d82354
refactor: simplify `isPresent(x) ? x : y` to `x || y` ( #12166 )
...
Closes #12166
2016-10-10 09:20:58 -07:00
Victor Berchet
bdcf46f82e
refactor(compiler): improve types, misc
2016-10-10 09:20:58 -07:00
Christoph Krautz
79e1c7b807
refactor(upgrade): unify spec code ( #12190 )
...
- replace all variable declarations using 'var' by 'const' or 'let'
- replace es5 function declaration by arrow function where applicable
2016-10-10 09:18:33 -07:00
Pawel Kozlowski
d22eeb70b8
fix(forms): allow optional fields with pattern and minlength validators ( #12147 )
2016-10-10 09:17:45 -07:00
Victor Berchet
aa92512ac6
fix(compiler): properly shim `:host:before` and `:host(:before)` ( #12171 )
...
fixes #12165
2016-10-10 09:15:15 -07:00
Chuck Jazdzewski
4202936bbf
refactor(compiler): add optional `visit()` to html AST `Visitor` ( #12135 )
2016-10-10 09:13:50 -07:00
Chuck Jazdzewski
e1faca6386
refactor(compiler): template element ast has endSourceSpan ( #12138 )
2016-10-10 09:12:05 -07:00
Igor Minar
bcef5efffe
fix(platform-browser-dynamic): mark platformBrowserDynamic as stable API ( #12154 )
...
Everyone building Angular apps need to use this api to bootstrap or AoT compile, so it can't be experimental.
2016-10-07 13:54:06 -07:00
Victor Berchet
13ecc140e8
fix(compiler): validate `@HostBinding` name ( #12139 )
...
relates to #7500
2016-10-07 13:53:53 -07:00
Chuck Jazdzewski
709a6dea06
refactor(compiler): attribute ast records span of the value ( #12132 )
2016-10-07 13:53:29 -07:00
Chuck Jazdzewski
16cfb88c00
refactor(compiler): refactor `analyzeModules()` out of `OfflineCompiler` ( #12137 )
2016-10-07 13:52:53 -07:00
Victor Berchet
afb4bd9ef6
refactor(NgZone): merge NgZoneImpl and NgZone ( #12104 )
2016-10-06 15:23:37 -07:00
Chuck Jazdzewski
d641c36a45
fix(compiler): interpolation expressions report the correct offset ( #12125 )
2016-10-06 15:22:10 -07:00
Victor Berchet
f4566f8128
fix(http): fix Headers initialization from Headers and Object ( #12106 )
2016-10-06 15:21:27 -07:00
Victor Berchet
a67c06708d
fix(http): Headers.append should append to the list
2016-10-06 15:21:03 -07:00
Victor Berchet
d9d57d71dd
refactor(http): move one Headers test inside the main describe
2016-10-06 15:21:03 -07:00
vsavkin
e06303a987
fix(router): improve error message ( #12102 )
2016-10-06 15:19:22 -07:00
vsavkin
40b92ddf21
fix(router): wildcards routes should support lazy loading
...
Closes #12024
2016-10-06 15:19:09 -07:00
vsavkin
1681e4f57f
fix(router): parent resolve should complete before merging resolved data
...
Closes #12032
2016-10-06 15:19:09 -07:00
Igor Minar
71b7654660
fix(compiler-cli): remove peerDependency on @angular/platform-server ( #12122 )
...
There is no runtime dependency from the compiler-cli on @angular/platform-server - it was most likely added to package.json by mistake.
2016-10-06 15:16:41 -07:00
Igor Minar
eaaec6979c
fix(compiler-cli): remove unused parse5 dependency from package.json
...
This was added in error or is an obsolete dependency. We don't need parse5 for the compiler-cli's runtime.
2016-10-06 15:16:22 -07:00
Pawel Kozlowski
f50c1da4e2
fix(forms): properly validate blank strings with minlength ( #12091 )
2016-10-06 15:12:09 -07:00
Victor Berchet
0254ce1f6c
refactor(core): simplify Reflector code, add types ( #12099 )
2016-10-06 15:11:16 -07:00
Chuck Jazdzewski
c9b765f5c0
refactor(compiler): module collector is reusable ( #12095 )
2016-10-06 15:10:44 -07:00
Alex Eagle
8c975ed156
refactor(facade): inline StringWrapper ( #12051 )
2016-10-06 15:10:27 -07:00
Thomas Grainger
230b3b73d8
chore(benchpress): fix the license ( #12090 )
...
It's not Apache MIT 2.0, that's a mishmash of Apache 2.0 and MIT
2016-10-06 10:24:01 -07:00
Phong Huynh
0b7dc2f9ff
docs(RouterTestingModule) change modules to imports in example ( #12118 )
2016-10-06 10:22:39 -07:00
Tobias Bosch
de1f44f51f
fix(benchmarks): allow ng2_switch benchmark to be used with AoT. ( #12124 )
2016-10-06 10:22:08 -07:00
Tobias Bosch
f1cfddf6d6
refactor(benchmarks): add `index_aot` to support AoT bootstrap. ( #12105 )
...
Note: This only make sure it can compile the AoT version, but does not yet use it in e2e tests.
2016-10-06 08:37:37 -07:00
Victor Berchet
cf269d9ff4
refactor: add license header to JS files & format files ( #12081 )
2016-10-04 20:39:20 -07:00
Tobias Bosch
5fa5ffb82a
refactor(benchmarks): refactor to support AOT bootstrap in G3 ( #12075 )
2016-10-04 16:27:45 -07:00
Pawel Kozlowski
4a57dcfd8d
fix(forms): properly validate empty strings with patterns ( #11450 )
2016-10-04 16:14:23 -07:00
Victor Berchet
50c37d45dc
refactor: simplify arrow functions ( #12057 )
2016-10-04 15:57:37 -07:00
Victor Berchet
a63359689f
fix(ShadowCss): fix attribute selectors in :host and :host-context ( #12056 )
...
Fix a regression introduced in #11917 while fixing #6249
2016-10-04 15:40:31 -07:00
Chuck Jazdzewski
43d3a84df3
Revert "refactor: add license header to JS files & format files ( #12035 )"
...
This reverts commit 8310c91823
.
2016-10-04 14:06:41 -07:00
Victor Berchet
8310c91823
refactor: add license header to JS files & format files ( #12035 )
2016-10-04 13:15:49 -07:00
Alex Eagle
b64b5ece65
refactor(facade): Remove most of StringMapWrapper facade. ( #12022 )
...
This change mostly automated by
12012b07a2
with some manual fixes.
2016-10-03 16:46:05 -07:00
Victor Berchet
ed9c2b6281
fix(Header): preserve case of the first init, `set()` or `append()` ( #12023 )
...
fixes #11624
2016-10-03 15:27:56 -07:00
Ben Elliott
1cf5f5fa38
docs(NgModule): Fixed docs for NgModule.entryComponents ( #12006 )
...
* docs(NgModule): Corrected the wording of the documentation of `entryComponents`, fixed some minor grammar issues
* docs(NgModule): Remove redundant ComponentFactory mentions
* docs(NgModule): Restore ComponentFactory/ComponentResolver links
2016-10-03 10:19:03 -07:00
Alex Eagle
decd129a4d
refactor(facade): remove DateWrapper ( #12027 )
2016-10-02 14:12:14 -07:00
Victor Berchet
c3c9ecb302
text(offline compiler): fix expected output
2016-09-30 17:59:43 -07:00
Victor Berchet
af520947aa
test(AstSerializer): fix serializing void tags
2016-09-30 17:59:43 -07:00
Victor Berchet
040bf57966
fix(xlif): fix `<x>` ctype names
...
fixes #12000
see http://docs.oasis-open.org/xliff/v1.2/os/xliff-core.html#ctype
2016-09-30 17:59:43 -07:00
Victor Berchet
65a60b7456
style(I18N): Carriage returns in serialized files
2016-09-30 17:59:43 -07:00
Victor Berchet
9316f95467
fix(ShadowCss): support `@page` and `@document` CSS rules ( #11878 )
...
fixes #11860
2016-09-30 16:26:24 -07:00
Victor Berchet
83d94b7504
fix(ShadowCss): support quoted attribute values
...
fixes #6085
2016-09-30 14:37:41 -07:00
Victor Berchet
a121136fae
refactor(ShadowCss): add missing types
2016-09-30 14:37:41 -07:00
Victor Berchet
a6bb84e02b
fix(ShadowCss): fix `:host(tag)` and `:host-context(tag)`
...
fixes #11972
2016-09-30 14:37:41 -07:00
Victor Berchet
3898dc488e
fix(BrowserAdapter): correctly removes styles on IE
...
fixes #7916
2016-09-30 11:18:17 -07:00
Victor Berchet
ca3f9926f9
refactor(BrowserAdapter): cleanup
2016-09-30 11:18:17 -07:00
Victor Berchet
1c012a035f
refactor(CssSelector): misc cleanup
2016-09-30 11:06:24 -07:00
Victor Berchet
38c5304b7f
docs(CssSelector): `[name*=value]` is not supported
...
fixes #6042
2016-09-30 11:06:24 -07:00
Victor Berchet
9a049be67f
feat(Parse5): update to the latest version 2.2.1
...
fixes #6237
2016-09-30 10:46:49 -07:00
Tobias Bosch
2045c9e8ee
docs: update docs for ng2_ftl benchmark
2016-09-30 10:42:21 -07:00
Victor Berchet
6c4ec05a4a
fix(ShadowCss): support `[attr="value with space"]`
...
fixes #6249
2016-09-30 10:27:35 -07:00
Victor Berchet
f7bfda31ff
refactor(ShadowCss): cleanup
2016-09-30 10:27:35 -07:00
Victor Berchet
a92b573309
test(DirectiveResolver): test that a prop can have both `@Input` and `@HostBinding`
2016-09-30 10:08:52 -07:00
Victor Berchet
4fd13d71c8
refactor(DirectiveResolver): cleanup
2016-09-30 10:08:52 -07:00
alexbyk
bf7b82b658
fix(UrlSearchParams): change a behavior when a param value is null or undefined ( #11990 )
2016-09-30 09:57:26 -07:00
Connor Wyatt
c143fee849
refactor(routerLinkActive): optimised routerLinkActive active check code ( #11968 )
...
Modify routerLinkActive to optimise performance by removing unnecessary iteration. By replacing Array.reduce with Array.some, the loop will break when it finds an active link. Useful if used on the parent of a large group of routerLinks. Furthermore, if a RouterLink is active it will not check the RouterLinkWithHrefs.
2016-09-30 09:42:54 -07:00
Alex Eagle
0286956107
refactor(facade): Inline isBlank called with object-type argument ( #11992 )
2016-09-30 09:26:53 -07:00
Matias Niemelä
e884f4854d
feat(animations): provide aliases for :enter and :leave transitions ( #11991 )
2016-09-30 09:15:56 -07:00
Tobias Bosch
df1822fc2a
benchmarks: add ng2_ftl and ng2_switch_ftl benchmarks ( #11963 )
...
These benchmarks take the output of AoT
and manually tweaks it to explore possible
future changes to the compiler to produce
this output directly.
2016-09-30 09:09:31 -07:00
Christoph Krautz
42b4b6d21b
fix(upgrade): bind optional properties when upgrading from ng1 ( #11411 )
...
Previously, optional properties of a directive/component would be wrongly mapped and thus ignored.
Closes #10181
2016-09-29 09:45:28 -07:00
Florian Kinder
36bc2ff269
docs(forms): Added FormControl initialization information ( #11948 )
2016-09-28 13:59:08 -07:00
Alex Eagle
1564042fe8
fix(ngc): allow ReflectorHost passed as argument to CodeGenerator#create ( #11951 )
2016-09-27 17:12:57 -07:00
Alex Eagle
41c8c30973
chore(lint): remove unused imports ( #11923 )
...
This was done automatically by tslint, which can now fix issues it finds.
The fixer is still pending in PR https://github.com/palantir/tslint/pull/1568
Also I have a local bugfix for https://github.com/palantir/tslint/issues/1569
which causes too many imports to be deleted.
2016-09-27 17:12:25 -07:00
Marc Laval
61129fa12d
fix(compiler): move detection of unsafe properties for binding to ElementSchemaRegistry ( #11378 )
2016-09-27 17:10:02 -07:00
vikerman
3a5b4882bc
fix(compiler): Do not embed templateUrl in view factories in non-debug mode. ( #11818 )
...
Fixes #11117 .
2016-09-27 17:09:44 -07:00
Victor Berchet
425c1e6042
refactor: remove dead code
2016-09-27 16:13:09 -07:00
Victor Berchet
58605cf350
refactor(facade): remove useless facades
2016-09-27 16:13:09 -07:00
Austin
34b31dea7c
docs(upgrade): rename undeclared `Ng2` to `Ng2Component` ( #11950 )
2016-09-27 16:11:41 -07:00
Austin
a241ab7c07
(docs): removing `addProvider` from `UpgradeAdapter` ( #11934 )
...
The `addProvider` function in the `UpgradeAdapter` was deprecated in this [commit](d21331e902 (diff-77163e956a7842149f583846c1c01651)
) and has been removed in final. Given this, the documentation for downgrading ng2 providers for use in ng1 is invalid.
2016-09-27 10:10:45 -07:00
Trotyl Yu
745e10e6d2
docs(router_config): add missing quote ( #11925 )
2016-09-27 10:10:12 -07:00
Victor Berchet
33340dbbd1
docs: remove outdated docs ( #11875 )
2016-09-24 08:23:28 +09:00
Rado Kirov
52f5ae1961
chore(compiler): followup fix for PR#11846 ( #11870 )
...
Original PR set [] to any, but any[], is a tighter type and still
works for SNC enabled consumers of the emit.
2016-09-24 07:13:05 +09:00
Victor Berchet
9be895b6da
docs(ExceptionHandler): fix API docs ( #11772 )
...
fixes #11769
2016-09-24 07:05:43 +09:00
Flounn
5ab5cc77bb
Fix(http): invalidStateError if response body without content ( #11786 )
...
Fix(http): invalidStateError if response body without content
If the responseType has been specified and other than 'text', responseText throw an InvalidStateError exception
See XHR doc => https://xhr.spec.whatwg.org/#the-responsetext-attribute
Unit Test to prevent invalidStateError
2016-09-24 05:44:01 +09:00
Matias Niemelä
f1b6c6efa1
refactor(animations): ensure animation input/outputs are managed within the template parser ( #11782 )
...
Closes #11782
Closes #11601
Related #11707
2016-09-24 05:37:04 +09:00
Miško Hevery
6fc46526ae
fix(upgrade): allow attribute selectors for components in ng2 which are not part of upgrade ( #11808 )
...
fixes #11280
2016-09-24 02:47:16 +09:00
Rado Kirov
3ef5ede6d6
chore(compiler): emit ([] as any[]) instead of purely []. ( #11846 )
...
In SNC mode `[]` has type of never[], so we cast it to any[] to
typecheck correctly see
https://github.com/Microsoft/TypeScript/issues/10479 .
This is temporary workaround, until we fully
migrate the framework to TS 2.0 and strictNullChecks.
2016-09-24 02:21:59 +09:00
Victor Berchet
136621ebc9
docs(Component): API docs for .encapsulation and .interpolation
2016-09-22 11:01:16 -07:00
Victor Berchet
f23b22a0f4
refactor: misc cleanup
2016-09-22 11:01:16 -07:00
Victor Berchet
0ca971c5bd
refactor(common): cleanup ( #11668 )
2016-09-22 10:34:00 -07:00
Igor Minar
3a6fcee0e6
docs(core): mark TestBed as stable api and add preliminary docs ( #11767 )
...
TestBed was accidentaly ommited from the 'stable' api list during the API sweep before final. We do consider it to be stable.
2016-09-22 10:32:17 -07:00
Victor Berchet
c041b93418
refactor(TemplateParser): clearer error message for on* binding ( #11802 )
...
fixes #11756
2016-09-22 10:31:18 -07:00
Victor Savkin
31dce72b7b
fix(router): update the router not to reset router state when updating root component ( #11799 )
2016-09-21 11:37:43 -07:00
Kara Erickson
212f8dbde7
fix(forms): disable all radios with disable()
2016-09-20 15:00:12 -07:00
Kara
44da4984f9
fix(forms): support unbound disabled in ngModel ( #11736 )
2016-09-20 14:55:47 -07:00
Chuck Jazdzewski
131626fc61
fix(compiler): Safe property access expressions work in event bindings ( #11724 )
2016-09-20 14:54:53 -07:00
vsavkin
5a849829c4
feat(router): add router preloader to optimistically preload routes
2016-09-20 14:53:52 -07:00
Victor Berchet
671f73448c
refactor: misc cleanup ( #11654 )
2016-09-19 17:15:57 -07:00
Kara
51d73d3e4e
fix(forms): make setDisabledState optional for reactive form directives ( #11731 )
...
Closes #11719
2016-09-19 16:26:33 -07:00
Kara
bf81b06a28
docs(forms): add select control examples ( #11728 )
2016-09-19 16:25:33 -07:00
Victor Berchet
5509453e72
refactor(common): pipe code cleanup
2016-09-19 16:19:28 -07:00
Victor Berchet
70488ed382
fix(OfflineCompiler): support older TS versions ( #11734 )
2016-09-19 15:36:25 -07:00
Victor Berchet
03aedbe54b
fix(OfflineCompiler): Do not provide I18N values when they're not specified
...
fixes #11643
2016-09-19 10:44:33 -07:00
Victor Berchet
8395aab25d
refactor(OfflineCompiler): cleanup
2016-09-19 10:44:33 -07:00
Victor Berchet
0dc15eb64a
fix(ContentChild): query descendants by default
...
fixes #1645
2016-09-19 10:42:46 -07:00
Victor Berchet
cba885a1fb
refactor: code cleanup
2016-09-19 10:42:46 -07:00
Kara
fa4723a208
docs(forms): add radio button examples ( #11676 )
2016-09-19 10:41:20 -07:00
Patrice Chalin
89802316b9
docs(injector): API docs - remove lone code-block backticks ( #11653 )
...
The triple backticks in the markdown of the API entry are unbalanced.
2016-09-18 16:04:04 -07:00
Brandon
2300c23332
fix(docs): Fixed wording for NgModule schemas ( #11620 )
2016-09-18 16:03:43 -07:00
esagawe
734b8b8c13
fix(compiler): [attribute~=value] selector ( #11696 )
...
Change the seperator regular expression to ignore tildes which are followed by an equal sign.
Closes #9644
2016-09-18 15:58:19 -07:00
Victor Berchet
54b41f57be
docs(Host): fix the API example ( #11684 )
...
fixes #11681
2016-09-18 15:56:13 -07:00
Jason Choi
df4254ae89
refactor(facade): move isPromise to core private ( #10573 )
2016-09-18 15:55:08 -07:00
Marc Laval
14ee75924b
fix(common): fix ngOnChanges signature of NgTemplateOutlet directive
2016-09-15 11:00:30 -07:00
Victor Berchet
bd4045b6e7
fix(MetadataResolver): throw Component.moduleId is not a string
...
fixes #11590
2016-09-15 10:57:37 -07:00
Victor Berchet
255099aa61
refactor(MetadataResolver): cleanup
2016-09-15 10:57:37 -07:00
Tobias Bosch
1c24096650
refactor(benchpress): add more types
2016-09-15 10:17:10 -07:00
Tobias Bosch
32aeb1052d
refactor(benchpress): normalize phase `b` into `B` and `e` into `E`
...
This simplifies the perflog metrics and prevents future errors.
2016-09-15 10:17:10 -07:00
Tobias Bosch
838d4bbf6c
fix(benchpress): support measuring scriptTime and other metrics of page reload.
...
E.g. for benchmarks that measure page start time
2016-09-15 10:17:10 -07:00
Tobias Bosch
c4114c2f66
finished refactoring
2016-09-15 10:17:10 -07:00
Tobias Bosch
37b8691c8c
refactor(benchpress): remove chrome < v44 support
2016-09-15 10:17:10 -07:00
Tobias Bosch
93054d4e3d
refactor(benchpress): remove facades from chrome_driver_extension
2016-09-15 10:17:10 -07:00
Naomi Black
cfc12c6539
docs(api): changes to correct jade errors in API doc gen ( #11619 )
2016-09-15 09:09:00 -07:00
Igor Minar
d5515473bf
docs: update README.md for npm packages
2016-09-14 17:14:02 -07:00
Igor Minar
cb657c4b55
docs: update descriptions in package.jsons
2016-09-14 16:44:39 -07:00
vsavkin
42f60ca303
docs(core): update dts file
2016-09-14 15:27:33 -07:00
vsavkin
e33037a2f1
docs(core): docs for Directive and Component
2016-09-14 15:27:33 -07:00
Victor Berchet
9cee8bcc83
docs(common): add directives docs
...
Closes #11581
2016-09-14 15:24:01 -07:00
vsavkin
003294d5df
docs(core): fix examples
2016-09-14 14:53:30 -07:00
vsavkin
785292f44f
chore(core): reexport query metadata decorators
2016-09-14 14:53:30 -07:00
vsavkin
096ae7c404
docs(core): updates query decorator docs
2016-09-14 14:53:30 -07:00
vsavkin
5972fdc817
docs(core): extract how to examples
2016-09-14 14:53:30 -07:00
Misko Hevery
2c42a50fc3
docs(pipes): updated pipe documentation
2016-09-14 14:32:09 -07:00
Misko Hevery
caa1cd2470
docs(pipes): move pipe examples to the common folder
2016-09-14 14:26:00 -07:00
Alex Eagle
5fad37df69
Revert "chore(core): update public api file"
...
This reverts commit 727c2b38a4
.
Revert "docs(core): updates query decorator docs"
This reverts commit b6287ccc51
.
Revert "docs(core): extract how to examples"
This reverts commit 69e8ace884
.
2016-09-14 13:34:25 -07:00
vsavkin
b6287ccc51
docs(core): updates query decorator docs
2016-09-14 13:22:09 -07:00
vsavkin
69e8ace884
docs(core): extract how to examples
2016-09-14 13:22:09 -07:00
Pawel Kozlowski
85d9db6bc4
fix(platform-browser): provide Title service as part of the module ( #11605 )
...
Fixes #11600
2016-09-14 13:21:23 -07:00
Tobias Bosch
0a2132ef10
docs(di): update docs on di
2016-09-14 11:57:31 -07:00
Tobias Bosch
d299ce4bcf
docs(lifecycle): update docs for lifecycle hooks
2016-09-14 11:51:03 -07:00
Tobias Bosch
0b9425bbb4
fix(examples): make them work with `noImplicitAny` and `declarations:true`
2016-09-14 11:29:31 -07:00
Tobias Bosch
1a035a0dc7
build(examples): include in main `tsconfig.json`
...
Also rename `examples/tsconfig.json` into `examples/tsconfig-build.json`
so that it does not shadow the main `tsconfig.json` in editors
Also adds `noImplicitAny` and `declarations`
`examples/tsconfig.json`.
2016-09-14 11:29:31 -07:00
Victor Berchet
84b4338ab5
build(example): fix tsconfig ( #11593 )
2016-09-14 07:40:58 -07:00
Victor Berchet
b847257b16
refactor(ShadowCss): remove a comment that trigger an issue with webpack ( #11587 )
...
fixes #11584
2016-09-13 21:59:11 -07:00
Igor Minar
c65d139081
build: remove JS suffix from the license banner
2016-09-13 21:48:58 -07:00