8349 Commits

Author SHA1 Message Date
Matias Niemelä
e25f05ae7c fix(animations): make sure @.disabled respects disabled parent/sub animation sequences ()
Prior to this fix if @parent and @child animations ran at the same
time within a disabled region then there was a chance that a @child
sub animation would never complete. This would cause *directives to
never close a removal when a @child trigger was placed on them. This
patch fixes this issue.

PR Close 
2017-08-18 23:30:28 -05:00
Matias Niemelä
791c7efe29 fix(animations): ensure animations are disabled on the element containing the @.disabled flag ()
Prior to fix this fix, @.disabled would only work to disable child
animations. Now it will also disable animations for the element that has
the @.disabled flag (which makes more sense).

PR Close 
2017-08-18 23:28:07 -05:00
Matias Niemelä
2159342038 feat(animations): allow @.disabled property to work without an expression ()
PR Close 
2017-08-18 23:28:04 -05:00
Filipe Silva
e228f2caa6 fix(compiler-cli): use forward slashes for ts.resolveModuleName ()
Windows paths have back slashes, but TypeScript expects to always have forward slashes.

In other places where this call happens (like `src/compiler_host.ts`) the same fix is present.

PR Close 
2017-08-18 22:28:08 -05:00
Olivier Combe
7522987a51 refactor(common): remove deprecated NgTemplateOutlet#ngOutletContext ()
BREAKING CHANGE: `NgTemplateOutlet#ngOutletContext` has been removed as it was deprecated since v4. Use `NgTemplateOutlet#ngTemplateOutletContext` instead.

PR Close 
2017-08-18 22:28:01 -05:00
Joe
ff6a20d138 docs(aio): fix card inconsistency ()
PR Close 
2017-08-18 22:27:48 -05:00
Yuan Gao
4eb1f91bee ci(aio): Refactored payload size script, add script to track payload ()
PR Close 
2017-08-18 22:27:38 -05:00
Marc Laval
f53f7241a0 fix(core): correct order in ContentChildren query result ()
Fixes 

PR Close 
2017-08-18 22:27:30 -05:00
Olivier Combe
f2a2a6b478 refactor(core): remove deprecated Testability#findBindings ()
BREAKING CHANGE: `Testability#findBindings` has been removed as it was deprecated since v4. Use `Testability#findProviders` instead.

PR Close 
2017-08-18 17:13:16 -05:00
Olivier Combe
d61b9021e0 refactor(core): remove deprecated DebugNode#source ()
BREAKING CHANGE: `DebugNode#source` has been removed as it was deprecated since v4.

PR Close 
2017-08-18 17:13:16 -05:00
Olivier Combe
499d05ddee refactor(compiler): remove option useDebug ()
BREAKING CHANGE: the option `useDebug` for the compiler has been removed as it had no effect and was deprecated since v4.

PR Close 
2017-08-18 17:13:16 -05:00
Peter Bacon Darwin
b8a3736275 build(aio): do not auto-link code elements already inside a link ()
Closes 

PR Close 
2017-08-18 17:13:16 -05:00
Pawel Kozlowski
7d72d0eb9b refactor(compiler): align &ngsp; handling with Angular Dart implementation ()
PR Close 
2017-08-18 17:13:15 -05:00
Tea
7f4c964eef docs(aio): typo in template-syntax guide ()
PR Close 
2017-08-18 17:13:15 -05:00
Olivier Combe
be9713c6e2 refactor(core): remove deprecated ChangeDetectionRef argument in DifferFactory#create ()
BREAKING CHANGE: `DifferFactory.create` no longer takes ChangeDetectionRef as a first argument as it was not used and deprecated since v4.

PR Close 
2017-08-18 13:23:47 -05:00
Olivier Combe
596e9f4e04 refactor(core): remove deprecated TrackByFn ()
BREAKING CHANGE: `TrackByFn` has been removed because it was deprecated since v4. Use `TrackByFunction` instead.

PR Close 
2017-08-18 13:23:46 -05:00
mgechev
da14391cff docs(aio): update resource for codelyzer ()
PR Close 
2017-08-18 13:23:26 -05:00
Georgios Kalpakas
60c803649b test(aio): fix error logged during tests ()
The fixed test expected there to be a doc version without a URL. This used to be
the case but not any more. As a result, an error was logged in the test output
(but no failure).

This commit fixes it by ensuring that a version without a URL exists.

PR Close 
2017-08-18 13:23:16 -05:00
Georgios Kalpakas
17b71ae382 docs(aio): move code snippet to appropriate location ()
PR Close 
2017-08-18 13:23:09 -05:00
Olivier Combe
a56468cf2f refactor(platform-webworker): remove deprecated PRIMITIVE ()
BREAKING CHANGE: `PRIMITIVE` has been removed as it was deprecated since v4. Use `SerializerTypes.PRIMITIVE` instead.

PR Close 
2017-08-17 18:02:00 -05:00
Olivier Combe
d7f42bfbe6 refactor(platform-browser): remove deprecated NgProbeToken ()
BREAKING CHANGE: `NgProbeToken` has been removed from `@angular/platform-browser` as it was deprecated since v4. Import it from `@angular/core` instead.

PR Close 
2017-08-17 18:01:52 -05:00
Olivier Combe
8f413268cf refactor(core): remove deprecated parameter for ErrorHandler ()
BREAKING CHANGE: `ErrorHandler` no longer takes a parameter as it was not used and deprecated since v4.

PR Close 
2017-08-17 18:01:41 -05:00
Olivier Combe
2a62d9f056 build(packaging): increase node memory for tests ()
PR Close 
2017-08-17 18:01:32 -05:00
cexbrayat
5f5a8e1da6 docs(aio): typo in metadata guide ()
PR Close 
2017-08-17 18:01:20 -05:00
Alan Agius
6e3498ca8e fix(tsc-wrapped): add metadata for type declarations ()
Closes 

test(tsc-wrapped): fix collector tests

refactor(tsc-wrapped): change `__symbolic` to `interface` for `TypeAliasDeclaration`

tsc-wrapped: reword test

PR Close 
2017-08-17 18:01:10 -05:00
Tobias Bosch
7bfd850493 refactor(compiler): add missing test to compare core and compiler metadata ()
PR Close 
2017-08-17 18:00:55 -05:00
Tobias Bosch
ffb1553282 refactor(compiler): make the new ngc API independent of tsickle ()
This changes `performCompile` / `program.emit` to not tsickle automatically,
but allows to pass in an `emitCallback` in which tsickle can be executed.
2017-08-17 18:00:52 -05:00
Miško Hevery
56a5b02d04 test: add cli integration test ()
This adds cli integration test which creates a hello-world and tests it.

PR Close 
2017-08-16 22:00:36 -05:00
Tobias Bosch
0cc77b4a69 refactor(compiler): split compiler and core ()
After this, neither @angular/compiler nor @angular/comnpiler-cli depend
on @angular/core.

This add a duplication of some interfaces and enums which is stored
in @angular/compiler/src/core.ts

BREAKING CHANGE:
- `@angular/platform-server` now additionally depends on
  `@angular/platform-browser-dynamic` as a peer dependency.


PR Close 
2017-08-16 17:58:53 -05:00
Tobias Bosch
a0ca01d580 refactor(compiler): drop typings tests for TypeScript 2.1 () 2017-08-16 17:58:48 -05:00
Tobias Bosch
2da45e629d fix(tsc-wrapped): make test.sh tools run the tsc-wrapped tests again () 2017-08-16 17:58:44 -05:00
Vikram Subramanian
845c68fdb3 fix(animations): resolve error when using AnimationBuilder with platform-server ()
Use an injected DOCUMENT instead of assuming the global 'document'
exists.

Fixes .

PR Close 
2017-08-16 17:47:42 -05:00
Olivier Combe
21c44672c4 build(packaging): increase node memory for tests ()
PR Close 
2017-08-16 17:47:34 -05:00
Olivier Combe
83713ddea4 feat(common): add an empty DeprecatedI18NPipesModule module ()
Adding an empty module to ease the migration to the i18n pipes.

PR Close 
2017-08-16 17:47:24 -05:00
Jeremy Elbourn
3a500981ef feat(compiler): allow multiple exportAs names
This change allows users to specify multiple exportAs names for a
directive by giving a comma-delimited list inside the string.

The primary motivation for this change is to allow these names to be
changed in a backwards compatible way.
2017-08-16 15:31:48 -07:00
Kara Erickson
0d45828460 feat(forms): add updateOn and ngFormOptions to NgForm
This commit introduces a new Input property called
`ngFormOptions` to the `NgForm` directive. You can use it
to set default `updateOn` values for all the form's child
controls. This default will be used unless the child has
already explicitly set its own `updateOn` value in
`ngModelOptions`.

Potential values: `change` | `blur` | `submit`

```html
<form [ngFormOptions]="{updateOn: blur}">
  <input name="one" ngModel>  <!-- will update on blur-->
</form>
```

For more context, see [](https://github.com/angular/angular/pull/18577).
2017-08-16 15:25:34 -07:00
Tobias Bosch
43226cb93d feat(compiler): use typescript for resolving resource paths
This can also be customized via the new method `resourceNameToFileName` in the
`CompilerHost`.
2017-08-16 15:24:48 -07:00
Tobias Bosch
2572bf508f feat(compiler): make .ngsummary.json files portable
This also allows to customize the filePaths in `.ngsummary.json` file
via the new methods `toSummaryFileName` and `fromSummaryFileName`
on the `CompilerHost`.
2017-08-16 15:24:48 -07:00
Tobias Bosch
6a1ab61cce refactor(compiler): simplify the CompilerHost used for transformers
- remove unneeded methods (`getNgCanonicalFileName`, `assumeFileExists`)
- simplify moduleName <-> fileName conversion logic as we don’t need to
  account for `genDir` anymore.
- rename `createNgCompilerHost` -> `createCompilerHost`
2017-08-16 15:24:48 -07:00
Tobias Bosch
27d5058e01 refactor(compiler): extract a BaseAotCompilerHost that is shared between the old and new logic 2017-08-16 15:24:48 -07:00
Hans Larsen
9aa05211ff
docs: add changelog for 5.0.0-beta.4 2017-08-16 13:01:52 -07:00
Hans Larsen
40d69c317c
release: cut the 5.0.0-beta.4 release 2017-08-16 12:58:19 -07:00
Chuck Jazdzewski
bc22ff1517 fix(language-service): remove tsickle dependency
Removes the tsickle dependency added when tsickle was added to the
transform compiler.

Added a test to ensure stray dependencies are not added and no
errors are introduced during module flattening.
2017-08-16 11:33:49 -07:00
Hans Larsen
75d484e29d
docs: add changelog for 4.3.5 2017-08-16 10:51:58 -07:00
Kara Erickson
32ff21c16b fix(forms): re-assigning options should not clear select
Fixes 
2017-08-15 19:07:52 -07:00
ksvitkovsky
c65f18a2fa docs(forms): fix reactive-forms guide typo
closes 
2017-08-15 16:42:58 -07:00
Ward Bell
697c6ed0fe docs: remove TypeScript to JavaScript guide & sample 2017-08-15 16:31:31 -07:00
Pawel Kozlowski
0a73e8d062 feat(common): mark NgTemplateOutlet API as stable 2017-08-15 16:31:15 -07:00
Zhicheng Wang
64b4be9670 fix(compiler): Don't strip CSS source maps
Fix CSS source mapping for component by keeping `/*# sourceMappingURL= ... */` and  `/*# sourceURL= ... */` comments.

Relates to <https://github.com/angular/angular-cli/issues/4199>.
2017-08-15 16:30:09 -07:00
Pawel Kozlowski
77747e10c0 refactor(core): remove toString() method from DefaultIterableDiffer
toString() from DefaultIterableDiffer is only used in tests and should not
be part of the production code. toString() methods from differs add
~ 0.3KB (min+gzip) to the production bundle size.
2017-08-15 16:29:44 -07:00