ani-angular-2 icon indicating copy to clipboard operation
ani-angular-2 copied to clipboard

Connecting to an API

Open capecoder08 opened this issue 9 years ago • 1 comments

How do I connect to an API based on the string value given in the environment config? Trying to create a login http request for token authentication.

capecoder08 avatar Mar 03 '17 19:03 capecoder08

Hi , I worked with this theme before , you can set API URL in tools/env/base.ts , than you can build you API url call by using Config.API , make sure you import { Config } from '../shared/index' in your ts file .

betwar512 avatar Mar 04 '17 09:03 betwar512