View live demo here: https://angular-js-api-integration-demo.stackblitz.io/
View code in live editor here: https://stackblitz.com/edit/angular-js-api-integration-demo
This Angular CLI demo uses ArcGIS REST JS for signing a user in to their ArcGIS Online account and querying all their feature services. Then, they can add any of the services to the map displayed by the ArcGIS JavaScript API. The user's signed in state is passed from the UserSession of REST JS to the JS API's IdentityManager.