NOTE: These instructions apply to trying to use the ArcGIS API for JavaScript in an Angular 2 application created w/ angular-cli. If you're working with more recent versions of Angular, you should use https://github.com/Esri/esri-loader instead.
-
Create a new Angular app by using angular-cli to generate a new project
-
Install angular2-esri-loader
npm install angular2-esri-loader esri-loader --save