【发布时间】:2017-05-30 09:23:05
【问题描述】:
我在 env.dev.ts 中有我的 const 变量。
export const ABC_BASE_URL = "http://api.me/api/v1/";
export const TOKEN = "current-token'";
export const LOGIN = "auth";
export const LOGIN_URL = ABC_BASE_URL + LOGIN;
export const LOGIN_ENABLE = true;
我在 src/app 中有这个文件,所以我可以在浏览器上看到它。 然后我在config different enviroments 上读到,这是一种不好的做法:
公开您的开发环境的内部结构。
我不使用 angular-cli。
那么,我该怎么做呢?提前谢谢你
【问题讨论】:
标签: angular