docs(upgrade): Fix typos in AngularJS versions (1.5 and 1.x) (#3239)

This commit is contained in:
Dmytro Yarmak 2017-02-14 21:58:32 +02:00 committed by Jules Kremer
parent 32c07c00b9
commit 1f20310ed3
1 changed files with 7 additions and 7 deletions

View File

@ -191,7 +191,7 @@ include ../_util-fns
+makeExample('upgrade-module/ts/src/app/hero-detail.directive.ts')
:marked
AngularJS.5 introduces the [component API](https://docs.angularjs.org/api/ng/type/angular.Module)
AngularJS 1.5 introduces the [component API](https://docs.angularjs.org/api/ng/type/angular.Module)
that makes it easier to define directives like these. It is a good idea to use
this API for component directives for several reasons:
@ -206,7 +206,7 @@ include ../_util-fns
:marked
Controller lifecycle hook methods `$onInit()`, `$onDestroy()`, and `$onChanges()`
are another convenient feature that AngularJS.5 introduces. They all have nearly
are another convenient feature that AngularJS 1.5 introduces. They all have nearly
exact [equivalents in Angular](lifecycle-hooks.html), so organizing component lifecycle
logic around them will ease the eventual Angular upgrade process.
@ -579,7 +579,7 @@ figure
[described in the preparation guide above](#using-component-directives).
Our safest bet for ensuring compatibility is using the
[component API](https://docs.angularjs.org/api/ng/type/angular.Module)
introduced in AngularJS.5.
introduced in AngularJS 1.5.
A simple example of an upgradable component is one that just has a template
and a controller:
@ -927,7 +927,7 @@ figure
.file scenarios.js
:marked
This is actually a pretty good starting point. The code uses the AngularJS.5
This is actually a pretty good starting point. The code uses the AngularJS 1.5
component API and the organization follows the
[AngularJS Style Guide](https://github.com/johnpapa/angular-styleguide/blob/master/a1/README.md),
which is an important [preparation step](#following-the-angular-style-guide) before
@ -1040,9 +1040,9 @@ code-example(format="").
.l-sub-section
:marked
The [AngularJS.x type definitions](https://www.npmjs.com/package/@types/angular)
The [AngularJS 1.x type definitions](https://www.npmjs.com/package/@types/angular)
we installed are not officially maintained by the Angular team,
but are quite comprehensive. It is possible to make an AngularJS.x application
but are quite comprehensive. It is possible to make an AngularJS 1.x application
fully type-annotated with the help of these definitions.
If this is something we wanted to do, it would be a good idea to enable
@ -1196,7 +1196,7 @@ code-example(format="").
:marked
The arguments used here are the root element of the application (which is
the same element we had `ng-app` on earlier), and the AngularJS.x modules
the same element we had `ng-app` on earlier), and the AngularJS 1.x modules
that we want to load. Since we're bootstrapping the app through
an `UpgradeModule`, we're actually now running the app as a **hybrid app**.