docs(upgrade): separate AngularJS Material typings to its own block (#35514)

PR Close #35514
This commit is contained in:
Chives 2020-02-18 13:12:00 -05:00 committed by Alex Rickabaugh
parent 99fdba0165
commit d7c4f40171
1 changed files with 9 additions and 1 deletions

View File

@ -1165,8 +1165,16 @@ Install type definitions for the existing libraries that
you're using but that don't come with prepackaged types: AngularJS, AngularJS Material, and the
Jasmine unit test framework.
For the PhoneCat app, we can install the necessary type definitions by running the following command:
<code-example format="">
npm install @types/jasmine @types/angular @types/angular-animate @types/angular-aria @types/angular-cookies @types/angular-mocks @types/angular-resource @types/angular-route @types/angular-sanitize @types/angular-material --save-dev
npm install @types/jasmine @types/angular @types/angular-animate @types/angular-aria @types/angular-cookies @types/angular-mocks @types/angular-resource @types/angular-route @types/angular-sanitize --save-dev
</code-example>
If you are using AngularJS Material, you can install the type definitions via:
<code-example format="">
npm install @types/angular-material --save-dev
</code-example>
You should also configure the TypeScript compiler with a `tsconfig.json` in the project directory