docs(upgrade): remove outdated/non-applicable AOT section from upgrade guide (#36015)

The AOT compilation section of the `ngUpgrade` guide was
outdated/non-applicable. This commit hides the section to avoid confusion.
Fixing the section and re-introducing it is being tracked in #35989.

PR Close #36015
This commit is contained in:
George Kalpakas 2020-03-17 22:28:55 +02:00 committed by Andrew Kushnir
parent 5007b97db6
commit 67b9adfd1a

View File

@ -960,6 +960,12 @@ angular.module('myHybridApp', [...])
Once you introduce the Angular Router, using the Angular Router triggers navigations through the unified location service, still providing a single source for navigating with AngularJS and Angular. Once you introduce the Angular Router, using the Angular Router triggers navigations through the unified location service, still providing a single source for navigating with AngularJS and Angular.
<!--
TODO:
Correctly document how to use AOT with SystemJS-based `ngUpgrade` apps (or better yet update the
`ngUpgrade` examples/guides to use `@angular/cli`).
See https://github.com/angular/angular/issues/35989.
## Using Ahead-of-time compilation with hybrid apps ## Using Ahead-of-time compilation with hybrid apps
You can take advantage of Ahead-of-time (AOT) compilation on hybrid apps just like on any other You can take advantage of Ahead-of-time (AOT) compilation on hybrid apps just like on any other
@ -979,6 +985,7 @@ bootstrap the hybrid app:
</code-example> </code-example>
And that's all you need do to get the full benefit of AOT for Angular apps! And that's all you need do to get the full benefit of AOT for Angular apps!
-->
## PhoneCat Upgrade Tutorial ## PhoneCat Upgrade Tutorial
@ -1364,7 +1371,7 @@ You also need to make a couple of adjustments
to the `systemjs.config.js` file installed during [upgrade setup](guide/upgrade-setup). to the `systemjs.config.js` file installed during [upgrade setup](guide/upgrade-setup).
Point the browser to the project root when loading things through SystemJS, Point the browser to the project root when loading things through SystemJS,
instead of using the `<base>` URL. instead of using the `<base>` URL.
Install the `upgrade` package via `npm install @angular/upgrade --save` Install the `upgrade` package via `npm install @angular/upgrade --save`
and add a mapping for the `@angular/upgrade/static` package. and add a mapping for the `@angular/upgrade/static` package.