9854 Commits

Author SHA1 Message Date
Andrew Seguin
87f60bccfd feat(elements): injector create ()
PR Close 
2018-03-16 12:39:07 -07:00
Andrew Seguin
46efd4b938 feat(elements): George's comments ()
PR Close 
2018-03-16 12:39:07 -07:00
Andrew Seguin
19368085aa feat(elements): provide type, not factory; remove config need ()
PR Close 
2018-03-16 12:39:07 -07:00
Andrew Seguin
d2be675acc feat(elements): add tests for component factory strategy ()
PR Close 
2018-03-16 12:39:07 -07:00
Andrew Seguin
44f637a88b feat(elements): fix test ()
PR Close 
2018-03-16 12:39:07 -07:00
Andrew Seguin
863aff1a77 feat(elements): add polyfill for elements es5 shim ()
PR Close 
2018-03-16 12:39:07 -07:00
Andrew Seguin
400460cc93 feat(aio): update payload size ()
PR Close 
2018-03-16 12:39:07 -07:00
Andrew Seguin
4d506acba0 feat(aio): add hack, remove me ()
PR Close 
2018-03-16 12:39:07 -07:00
Andrew Seguin
7c9b411777 feat(aio): migrate embedded comp to elements ()
PR Close 
2018-03-16 12:39:07 -07:00
Andrew Seguin
22b96b9690 feat(elements): add support for creating custom elements ()
PR Close 
2018-03-16 12:39:07 -07:00
Chuck Jazdzewski
cedc04c320 docs(ivy): document project status ()
Moves the status reporting from the issue  to a file that
can be updated as changes are being made. This addresses one of the
comments on the issue and allows better tracking of updates to this
status and changes made.

PR Close 
2018-03-16 11:27:15 -07:00
Kara Erickson
bafdad9083 fix(ivy): cache local names and support multiple locals with same value ()
PR Close 
2018-03-16 11:26:38 -07:00
Kara Erickson
9220521149 test(ivy): correct export tests and add query test ()
PR Close 
2018-03-16 11:26:38 -07:00
Jeremy Elbourn
b149424b11 build(bazel): make ng_package auto generate package.json for secondary entry-points ()
PR Close 
2018-03-15 21:18:27 -07:00
Oussama Ben Brahim
269c3a1908 build(compiler-cli): fix tsconfig.json circularity issue ()
Fixes 

PR Close 
2018-03-15 21:18:07 -07:00
Alex Eagle
f9247e4b2e build: enable importHelpers in tsconfig ()
This is the primary tsconfig file used for Bazel builds.
Previously, we enabled this option only for releases.

PR Close 
2018-03-15 21:16:03 -07:00
Igor Minar
44de10e2db feat: mark angular packages as side-effect free ()
This flag is picked up by webpack v4 and used for more agressive optimizations.

Our code is already side-effect free, because that's what we needed for build-optimizer to work.

PR Close 
2018-03-15 14:52:40 -07:00
Victor Berchet
0ebd577db4 refactor(compiler): Drop support for the deprecated <template>. Use <ng-template> instead ()
BREAKING CHANGE:

The `<template>` tag was deprecated in Angular v4 to avoid collisions (i.e. when
using Web Components).

This commit removes support for `<template>`. `<ng-template>` should be used
instead.

BEFORE:

    <!-- html template -->
    <template>some template content</template>

    # tsconfig.json
    {
      # ...
      "angularCompilerOptions": {
        # ...
        # This option is no more supported and will have no effect
        "enableLegacyTemplate": [true|false]
      }
    }

AFTER:

    <!-- html template -->
    <ng-template>some template content</ng-template>

PR Close 
2018-03-15 14:52:22 -07:00
Kara Erickson
4e6ac185e5 refactor(ivy): double size of DI bloom filter ()
PR Close 
2018-03-15 14:49:39 -07:00
Kara Erickson
e55bf8fa79 refactor(ivy): access component def through tData ()
PR Close 
2018-03-15 14:49:23 -07:00
Olivier Combe
3b167be069 feat(compiler): support for singleline, multiline & jsdoc comments ()
PR Close 
2018-03-15 14:48:53 -07:00
Judy Bogart
02e6ac2117 docs: incorporate suggestions and corrections from gkalpak ()
PR Close 
2018-03-15 14:48:35 -07:00
Judy Bogart
04ca77e38e docs(aio): update architecture section ()
PR Close 
2018-03-15 14:48:35 -07:00
Igor Minar
a011654c71 build: update to tsickle@0.27.2 ()
PR Close 
2018-03-15 11:38:49 -07:00
Alex Eagle
88b3198c80 feat(bazel): change ng_package rule to APF v6 ()
Angular Package Format v6 stops bundling files in the esm5 and esm2015
directories, now that Webpack 4 can tree-shake per-file.

Adds some missing files like package.json to make packages closer to
what we publish today.

Refactor ng_package to be a type of npm_package and re-use the packaging
action from that rule.

PR Close 
2018-03-15 11:38:31 -07:00
Chuck Jazdzewski
6e5e819e80 fix(compiler-cli): emit correct css string escape sequences ()
Works around an issue with TypeScript 2.6 and 2.7 that causes
the tranformer emit to emit incorrect escapes for css string
literals.

Fixes: 

PR Close 
2018-03-15 11:37:50 -07:00
Pete Bacon Darwin
19e6b8dad5 build(aio): fix addNotYetDocumentedProperty processor ()
It was running too late and so was being confused by the
description being split into `shortDescription` and `description`
properties.

Closes 

PR Close 
2018-03-15 11:37:31 -07:00
Hans Larsen
f256c02b5e build: fix build.sh for package group and add a test ()
PR Close 
2018-03-15 11:34:46 -07:00
Kara Erickson
dd20898bd5 docs: add changelog for 5.2.9 2018-03-14 15:31:26 -07:00
Pete Bacon Darwin
d509bd6849 build(aio): improve the API Pipe pages ()
This change adds:

* an impure badge for Pipes that are marked as  `pure: false`
* a pipe specific overview that shows the syntax for using a pipe in a template.
* an "input value" section describing the type of the value that the pipe expects.
* a "pipe params" section describing any additional params that a pipe expects.

PR Close 
2018-03-14 14:21:11 -07:00
Adam Plumer
cd2ebd22fd fix(platform-server): add styles to elements correctly ()
* Partially reverts  due to lack of total spec compliance
  on the server
* Maintains the camel-case styles fix

PR Close 
2018-03-14 14:12:31 -07:00
Miško Hevery
112431db69 test(ivy): add canonical compiler spec for class/style ()
Adds a stub for `elementStyle` and `elementClass` instruction
with a canonical spec for the compiler. The spec shows the the
compiler should be using `elementStyle` and `elementClass` instruction
in place of `[class]` and `[style]` bindings respectively.
PR Close 
2018-03-14 12:59:52 -07:00
Miško Hevery
a0a01f1e1e refactor(ivy): rename class/style to make space for new instruction ()
Rename:
- `elementClass` (short: `k`) => `elementClassNamed` (short: `kn`)
- `elementStyle` (short: `s`) => `elementStyleNamed` (short: `sn`)

Currently `[class.name]` is `elementClass(0, ‘name’, value)`. We would
like to introduce new binding `[class]` which needs a new instruction
ideally `elementClass(0, value)`. Doing the rename creates space
to create such an instruction in subsequent change.

PR Close 
2018-03-14 12:59:52 -07:00
Miško Hevery
ae19d071bb test(ivy): add ComponentFixture for cleaner tests. ()
PR Close 
2018-03-14 12:59:52 -07:00
Matias Niemelä
f5a98f41fe fix(core): remove core animation import symbols ()
This patch removes the deprecated support for animation
symbol imports from @angular/core.

BREAKING CHANGE: it is no longer possible to import
animation-related functions from @angular/core. All
animation symbols must now be imported from @angular/animations.

PR Close 
2018-03-14 12:23:51 -07:00
Pawel Kozlowski
c09bd67aee fix(ivy): fix views manipulation logic ()
This commit fixes a bug that would result in views insert / remove
even if a view needed only refresh operation.

The crux of the bug was that we were looking for a view to update
only in the LContainer.nextIndex position. This is incorrect as a
view with a given block id could be present later in the views
array (this happens if we about to remove a view in the middle of
the views array).

The code in this fix searches for a view to update in the views array and
can remove views in the middle of the views collection. Previously we
would remove views at the end of the collection only.

PR Close 
2018-03-14 12:07:15 -07:00
Suguru Inatomi
9df13add5d docs(aio): add ng-japan 2018 to events ()
ng-japan 2018 will be held at June 16 in Tokyo, Japan! 

https://ngjapan.org/en.html
PR Close 
2018-03-14 10:59:55 -07:00
Pete Bacon Darwin
049757b237 fix(aio): constrain error logging to improve reporting ()
The `Logger.error()` method now only accepts a single `Error` parameter
and passes this through to the error handler.
This allows the error handler to serialize the error more accurately.

The various places that use `Logger.error()` have been updated.

See #21943#issuecomment-370230047

PR Close 
2018-03-14 10:52:11 -07:00
Ward Bell
1f9734315d docs: testing - highlight dispatchEvent ()
PR Close 
2018-03-14 10:21:41 -07:00
Pete Bacon Darwin
6f0dad1710 build(aio): render doc-gen issues in overview dump ()
Related to 

PR Close 
2018-03-14 10:20:30 -07:00
Michael Giambalvo
37fedd001c feat(core): add task tracking to Testability ()
Allow passing an optional timeout to Testability's whenStable(). If
specified, if Angular is not stable before the timeout is hit, the
done callback will be invoked with a list of pending macrotasks.

Also, allows an optional update callback, which will be invoked whenever
the set of pending macrotasks changes. If this callback returns true,
the timeout will be cancelled and the done callback will not be invoked.

If the optional parameters are not passed, whenStable() will work
as it did before, whether or not the task tracking zone spec is
available.

This change also migrates the Testability unit tests off the deprecated
AsyncTestCompleter.

PR Close 
2018-03-14 08:48:48 -07:00
Kara Erickson
b1365d1fa8 refactor(ivy): remove directiveRefresh instruction ()
PR Close 
2018-03-13 23:29:21 -07:00
WilliamKoza
4ac606b419 docs(compiler): fix spelling errors ()
PR Close 
2018-03-13 21:45:13 -07:00
Miško Hevery
51027d73cc fix(ivy): Update rollup rule to prevent inlining symbols in debug. ()
The new rollup rule disables inlining symbols in debug mode. This makes 
it look as if there would be more symbols but in reality these are the
symbols which are no longer being inlined.
PR Close 
2018-03-13 19:58:30 -07:00
Pete Bacon Darwin
48636f3e85 build(aio): compute stability and deprecate @stable tag ()
Closes 

PR Close 
2018-03-13 19:55:00 -07:00
Kara Erickson
bd9d4df735 refactor(ivy): remove inputsPropertyName ()
Closes 

PR Close 
2018-03-13 13:26:15 -07:00
Jeremy Elbourn
34e355a3b0 build(bazel): ng_package rxjs/operators rollup config ()
PR Close 
2018-03-13 12:12:11 -07:00
Matias Niemelä
58b94e6f5e feat(animations): expose element and params within transition matchers ()
PR Close 
2018-03-13 09:42:24 -07:00
Alex Rickabaugh
db56836425 feat: tree-shakeable providers API updates ()
Rename @Injectable({scope -> providedIn}).

Instead of {providedIn: APP_ROOT_SCOPE}, accept {providedIn: 'root'}.
Also, {providedIn: null} implies the injectable should not be added
to any scope.

PR Close 
2018-03-13 09:28:05 -07:00
Alex Eagle
21e44c6ba9 ci: add alexeagle to pullapprove root group ()
PR Close 
2018-03-12 16:23:58 -07:00