9758 Commits

Author SHA1 Message Date
Alex Rickabaugh
2d5e7d1b52 feat(compiler): mark @NgModules in provider lists for identification at runtime ()
All of the providers in a module get compiled into a module definition in the
factory file. Some of these providers are for the actual module types, as those
are available for injection in Angular. For tree-shakeable tokens, the runtime
needs to be able to distinguish which modules are present in an injector.

This change adds a NodeFlag which tags those module providers for later
identification.

PR Close 
2018-02-12 14:34:59 -08:00
Alex Rickabaugh
647b8595d0 build: update some ts_library rules to ng_module ()
This is needed so the rules produce metadata.json files, which is essential
for building compiler/integration tests with Bazel.

PR Close 
2018-02-12 14:34:59 -08:00
Alex Rickabaugh
0a1a397cd7 fix(platform-browser): add @Injectable where it was missing ()
PR Close 
2018-02-12 14:34:59 -08:00
mgmarlow
7f9b1b78f6 docs(aio): add angular-playground to resources ()
PR Close 
2018-02-12 14:30:58 -08:00
Johannes Hoppe
1e9484673d docs(aio): add angular.schule to resources ()
adds a link to our website. many thanks for reviewing this

PR Close 
2018-02-12 10:01:23 -08:00
Suguru Inatomi
88bec238ac fix(aio): remove broken span closing tag ()
PR Close 
2018-02-12 10:01:10 -08:00
Victor Berchet
62e7b9da1e refactor(ivy): code simplification ()
PR Close 
2018-02-12 10:00:56 -08:00
Victor Berchet
61341b2791 refactor(ivy): generatePropertyAliases ()
PR Close 
2018-02-12 10:00:56 -08:00
Dan Bucholtz
92a5876f51 refactor(router): move activation to private method ()
PR Close 
2018-02-12 10:00:36 -08:00
yerkebulan
a57df4ee20 docs(aio): put structural directives back in the nav ()
PR Close 
2018-02-12 10:00:14 -08:00
Misko Hevery
92d7060cb0 Revert "build(bazel): allow ng_modules to elide .ngsummary.closure.js files ()"
This reverts commit 263a2eca88b77ee92f10e2d6d1d5d5f8df5f2ede.
2018-02-09 20:08:41 -08:00
Alex Eagle
7e9b120452 build: update to latest bazel rules ()
PR Close 
2018-02-09 17:21:54 -08:00
Alex Eagle
b081dfe705 fix(bazel): allow TS to read ambient typings ()
Same fix as e70d7a2a7c
This is because the CompilerOptions needs to have directoryExists undefined in order to get the google3 behavior,
so we have to set the property outside the constructor.

Fixes 

PR Close 
2018-02-09 17:16:25 -08:00
Miško Hevery
4a4d749710 build: merge-pr new checks that all requested changes have been addressed ()
PR Close 
2018-02-09 17:14:17 -08:00
Victor Berchet
c878d55397 docs: add VSCode interaction issue to bazel docs ()
PR Close 
2018-02-09 17:13:06 -08:00
Chuck Jazdzewski
263a2eca88 build(bazel): allow ng_modules to elide .ngsummary.closure.js files ()
PR Close 
2018-02-09 16:07:49 -08:00
Olivier Combe
44154e71fd fix(common): round currencies based on decimal digits in CurrencyPipe ()
By default, we now round currencies based on the number of decimal digits available for that currency instead of using the rouding defined in the number formats.
More info about that can be found in http://www.unicode.org/cldr/charts/latest/supplemental/detailed_territory_currency_information.html#format_info

Fixes 

PR Close 
2018-02-09 14:42:23 -08:00
Olivier Combe
0b2f7d13d0 fix(common): regenerate i18n locale data files ()
PR Close 
2018-02-09 14:42:23 -08:00
Olivier Combe
420cc7afc6 fix(common): add locale currency values ()
we now use locale currency symbols, since they may be different in each locale (we were only using english data previously)

Fixes 

PR Close 
2018-02-09 14:42:23 -08:00
Pete Bacon Darwin
5fc77c90cb fix(aio): do not rewrite /styleguide URL in Service Worker ()
This URL needs to be redirected via the server, so
we must exclude it from being rewitten.

Closes 

PR Close 
2018-02-09 13:10:35 -08:00
Mikhail Burshteyn
c3484450b8 docs: fix typo in http.md ()
PR Close 
2018-02-09 13:10:23 -08:00
Pete Bacon Darwin
fbef94a8ee feat(aio): enable data driven homepage announcements ()
PR Close 
2018-02-09 13:10:11 -08:00
Chuck Jazdzewski
aa456edafc refactor(ivy): validate that identifier identity in emitted output ()
Modifies validation syntax to generate back references to ensure
that identifiers are used consistently.

Introduced … to allow validating constant definition and usage.

PR Close 
2018-02-09 13:06:10 -08:00
Pete Bacon Darwin
7007f51c35 feat(aio): first pass API docs redesign ()
Includes:

* display ToC for API docs
* update dgeni-packages to 0.24.1
* add floating sidebar in API docs
* add breadcrumbs and structured data for Google crawler
* improved rendering of method overloads
* properties rendered in a table
* params rendered with docs
* removal of outdated "infobox" from all API docs

PR Close 
2018-02-09 13:05:16 -08:00
Trotyl
bc1e22922a docs(aio): several fix for ngmodule guides ()
PR Close 
2018-02-09 13:03:47 -08:00
Miško Hevery
cf8d512e43 Revert "fix(forms): set state before emitting a value from ngModelChange ()"
This reverts commit 9744a1c966808f152559721215b9b0735308186a.
2018-02-09 10:11:23 -08:00
Miško Hevery
0b1f5d2127 Revert "docs(common): add HttpParamsOptions to the public API ()"
This reverts commit a9545aba4df81a10de6692619f06b5d0c11614a8.
2018-02-08 14:37:27 -08:00
Alex Eagle
dcf64a0d01 fix(bazel): improve error message for missing assets ()
fixes 

PR Close 
2018-02-08 10:01:27 -08:00
George Kalpakas
a9545aba4d docs(common): add HttpParamsOptions to the public API ()
Fixes 

PR Close 
2018-02-08 09:44:36 -08:00
Kara Erickson
d9ae70c699 test(ivy): normalize template names in canonical spec ()
PR Close 
2018-02-08 08:55:40 -08:00
Peter Bacon Darwin
a751649c8d fix(core): use appropriate inert document strategy for Firefox & Safari ()
Both Firefox and Safari are vulnerable to XSS if we use an inert document
created via `document.implementation.createHTMLDocument()`.

Now we check for those vulnerabilities and then use a DOMParser or XHR
strategy if needed.

Further the platform-server has its own library for parsing HTML, so we
sniff for that (by checking whether DOMParser exists) and fall back to
the standard strategy.

Thanks to @cure53 for the heads up on this issue.

PR Close 
2018-02-08 08:55:15 -08:00
Victor Berchet
3f5a3d6ea1 refactor(ivy): add internal isProceduralRenderer() ()
PR Close 
2018-02-07 17:03:25 -08:00
Victor Berchet
10a014d89e refactor(ivy): prefix viewStart & viewEnd with embedded ()
PR Close 
2018-02-07 17:03:25 -08:00
Victor Berchet
8feb8e5408 refactor(ivy): use long instruction format in tests ()
PR Close 
2018-02-07 17:03:25 -08:00
Victor Berchet
16dada28f5 docs(ivy): Simplify & dedup API docs for canInsertNativeNode ()
PR Close 
2018-02-07 17:03:25 -08:00
Pete Bacon Darwin
67cf7128ae docs(aio): remove ngATL banner from homepage ()
Closes 

PR Close 
2018-02-07 16:10:17 -08:00
Alex Eagle
16e5b866d2 test(ivy): also track the size of the compressed hello world bundle ()
PR Close 
2018-02-07 16:10:00 -08:00
Kapunahele Wong
83d43ac850 docs(aio): remove lifecycle hooks img ()
PR Close 
2018-02-07 16:09:44 -08:00
Jesus Rodriguez
cd25939be9 build(aio): update examples to CLI to 1.6.5 ()
PR Close 
2018-02-07 16:09:26 -08:00
Kara Erickson
b58c3527e9 test(ivy): add canonical spec for object literals ()
PR Close 
2018-02-07 12:10:16 -08:00
Miško Hevery
efc67ee5ef fix(ivy): make pipe invocation locality neutral ()
PR Close 
2018-02-07 12:09:56 -08:00
Pete Bacon Darwin
7a406a3896 feat(aio): report logger.error calls to Google Analytics ()
We have a number of observables that have `catch` handlers to recover
from errors without causing the stream to close, and breaking the app.
We also have some `try ... catch` blocks for synchronous code for a
similar reason.

In these cases we conventionally then call `logger.error` in the catch
handler. We are interested in these errors so we are going to capture them
by reporting them to Google Analytics via the new `ReportingErrorHandler`.

PR Close 
2018-02-07 12:09:38 -08:00
Pete Bacon Darwin
98001a065d feat(aio): report application errors to Google Analytics ()
This is a basic implementation of error logging using the limited
facilities provided by Google Analytics.

Errors within the Angular app itself will be handled by a new
`ReportingErrorHandler` service, which overrides and extends the
built-in `ErrorHandler`.

Further, errors outside the app, which arrive at `window.onerror`
will also be reported to Google Analytics.

Closes 

PR Close 
2018-02-07 12:09:38 -08:00
Chuck Jazdzewski
e442881ead feat(bazel): allow explicit specification of factories ()
The `ng_module` rule now has a factories attribute that
allows explicit specification of which files are expected
to generate factories. This allows avoiding generating
empty factory files (such as `.ngfactory.js`) begin
generated which might cause down-stream tools issues if
they have a limit on the number of files that can be
processed in a single bazel action.

PR Close 
2018-02-07 12:09:21 -08:00
Chuck Jazdzewski
b37cee36f9 fix(language-service): correct instructions to install the language service ()
Fixes: 

PR Close 
2018-02-07 12:09:00 -08:00
Emilio
e56de1025a fix(core): ensure initial value of QueryList length () ()
Set initial value of `length` to `0`.

Fixes regression introduced by e544742156 (diff-a85dbe0991a7577ea24b49374e9ae90b) where the `length` property ceased to have initial value.

Closes 

PR Close 
2018-02-07 12:08:44 -08:00
Olivier Combe
64ae6d206e test(common): disable deprecated date pipe tests on chrome mobile ()
Closes 
PR Close 
2018-02-07 12:07:31 -08:00
Oussama Ben Brahim
54a14312d1 test(forms): update test name with correct wording ()
Use the term primitive value instead of standalone

Fixes 

PR Close 
2018-02-07 12:07:14 -08:00
George Kalpakas
7e95802cc1 fix(aio): ignore .header-link when selecting the heading text ()
Implemented @maxkorz's
[suggestion](https://github.com/angular/angular/issues/21515#issuecomment-357453634).

Fixes 

PR Close 
2018-02-07 12:06:45 -08:00
George Kalpakas
e3e7044d06 fix(aio): prevent heading misplacement while styles load ()
During the initial load of the page (probably until the icon styles are
loaded and/or applied), the `.header-link` element is wider, pushing the
heading text slightly to the right (for a brief moment).

This commit prevents this slight shift by explicitly setting the width
for the `.header-link` element.

PR Close 
2018-02-07 12:06:45 -08:00