tomwayson / esri-angular-cli-example

Example of how to to use the ArcGIS API for JavaScript in an Angular CLI app

Home Page:https://tomwayson.github.io/esri-angular-cli-example

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Add instructions to README on how to add ArcGIS to a new angular-cli app

tomwayson opened this issue · comments

#29 highlights the need for instructions that shows the minimal steps to start using the ArcGIS API in an angular-cli app rather than leaving it up to devs to reverse engineer from this increasingly complex example app. Something that starts where the angular-cli instructions for creating a new app leaves off and walks devs through these steps:

  1. installing angular2-esri-loader
  2. registering that service w/ the app's DI
  3. create a new map route (optional?)
  4. create a new component that uses the service to show a map

I think the instructions and required code snippets could live in a gist and we'd just link to that from the README of this app.

A better idea is to help @jwasilgeo make his gist on how to add esri libraries to angular2-webpack-starter more generic so it applies to angular-cli as well. Then just link to that from the README.

@tomwayson please take another look now, and feel free to edit the gist.