Skip to content
This repository was archived by the owner on Apr 9, 2018. It is now read-only.

Commit 3975bc9

Browse files
authored
Adding type info for Angular CLI apps
1 parent 3bd65d1 commit 3975bc9

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

README.md

+2
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,8 @@ This service doesn't make any assumptions about which version of the ArcGIS API
6565
### 4.x Types
6666
Follow [these instructions](https://github.com/Esri/jsapi-resources/tree/master/4.x/typescript) to install the 4.x types.
6767

68+
For Angular CLI applications, you will also need to add "arcgis-js-api" to compilerOptions.types in src/tsconfig.app.json and src/tsconfig.spec.json [as shown here](https://gist.github.com/tomwayson/e6260adfd56c2529313936528b8adacd#adding-the-arcgis-api-for-javascript-types).
69+
6870
Then you can use the `__esri` namespace for the types as seen in [this example](https://github.com/kgs916/angular2-esri4-components/blob/68861b286fd3a4814c495c2bd723e336e917ced2/src/lib/esri4-map/esri4-map.component.ts#L20-L26).
6971

7072
### 3.x Types

0 commit comments

Comments
 (0)