How do I fetch my config API on my admin website to be use in my Signin Page?

hycarlDev_

I have my own config that I set up on my admin website, so every change that I made there, will be reflected on my website.

I'm referring to API, but I don't want to hardcode the base URL, I want to make it flexible, how do I do it?

This is my admin's page that consists of the config This is my admin's page

This is my shop.service.ts This is my service.ts

This is my getconfig() function as you can see, I don't want it to be hardcoded like this, instead, I wanna make it flexible based on the config on my admin website This is my getconfig function

hycarlDev_

There's no way, I just have to hard code it first.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

How do I use .woff fonts for my website?

How do I use Angular JS with my Restful API

How do I forward my page in Javascript if the website can't use "https://"?

How do I get my videos to work in my website?

How do use a page on my website to show another page content?

How do I deploy my website on my office network?

How do I move my website logo further up the page

How do I use Config Vars in Heroku to get my API key to work?

How do I align my navbar to the right of my html page?

How do i check if my file was uploaded and then echo my file uploaded statement to paticular part of my website

How do I add an admin dashboard feature to my PSK app? And why can't I reach my admin.html page?

how do i use json api in my kivy program

How can i limit my blogs per page on my website?

How do I access my config variable in my helper file?

How do I make a default page for my website application with php?

How do I get the same formating in my email as on my website?

How do I use a javascript API on my website?

Signin, Signup function of my website not working

How can I check if page is my admin setting page?

How do i restrict my admin from viewing a normal user page using php?

How do I center my buttons on my website?

How do I embed an external website Into my website?

How do i use Facebook API to post only on my page?

How do I place my menu on the right side of my website?

How do I use a checkbox within my WordPress website?

How do I use an external API in my React project?

How do I protect my password on the website?

how to setup a hidden config file in my website (with my api credentials in)

How can I move signin modal form the right hand (top) of my website

TOP Ranking

HotTag

Archive