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

Commit 3bd65d1

Browse files
authored
Merge pull request #11 from tomwayson/tomwayson-patch-1
Add links to angular-cli and webpack starter gists
2 parents 3322b3b + 7928f67 commit 3bd65d1

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

README.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# angular2-esri-loader
2-
An [Angular 2](https://angular.io/) service to help you load [ArcGIS API for JavaScript](https://developers.arcgis.com/javascript/) modules.
2+
An [Angular](https://angular.io/) library to help you load [ArcGIS API for JavaScript](https://developers.arcgis.com/javascript/) modules.
33

44
Exposes a service that wraps the functions from the [esri-loader](https://github.com/tomwayson/esri-loader) library in new functions that return promises.
55

@@ -48,9 +48,17 @@ export class EsriMapComponent implements OnInit {
4848
}
4949
```
5050

51+
### In an Angular CLI Application
52+
53+
To use this library in an [Angular CLI](https://github.com/angular/angular-cli) application, the best place to start is to follow the instructions in [this gist](https://gist.github.com/tomwayson/e6260adfd56c2529313936528b8adacd).
54+
5155
For an example of how to use this service to lazy load the ArcGIS API and resolve modules in a route, see
5256
[esri-angular-cli-example's esri-map-resolve.service.ts](https://github.com/tomwayson/esri-angular-cli-example/blob/ab4540912904cf78ccfd904fb3bfa4c69b4aa1da/src/app/esri-map/esri-map-resolve.service.ts).
5357

58+
### In an angular2-webpack-starter Application
59+
60+
See [this gist](https://gist.github.com/jwasilgeo/00855ee002aca822e33abd8a7a031f56) for instructions on how to use this library in an [AngularClass/angular2-webpack-starter](https://github.com/AngularClass/angular2-webpack-starter) application.
61+
5462
## ArcGIS Types
5563
This service doesn't make any assumptions about which version of the ArcGIS API you are using, so you will have to manually install the appropriate types.
5664

0 commit comments

Comments
 (0)