How to call REST service with Basic Authentication in Angularjs 2.0?
问题 I have java REST services and consumer in Angularjs 1.3. Services are JSON based and expect BASIC authentication (username-password). In AgJs 1.3, I used Base64 factory code (found on google) for creating basic authentication token from username and password and able to consume services SUCCESSFULLY. I read HTTP class in AgJs 2.0 documentation but I didn't find any information about basic authentication. Could anybody please provide sample code to consume REST services in Angularjs 2.0 using