转载文章链接: How to use environment variables to configure your Angular application without a rebuild
整体思路:在assets目录下添加js文件,获取js变量。编译部署后assets目录下的文件是不会被更改的
转载文章链接: How to use environment variables to configure your Angular application without a rebuild
整体思路:在assets目录下添加js文件,获取js变量。编译部署后assets目录下的文件是不会被更改的