AngularJS - 找到应用程序运行的Env?

时间:2021-11-04 20:16:06

I have an angular application. I have it set by scafolding using Yeoman and its generator-angular app. I am testing it using grunt serve.

我有一个有角度的应用。我使用Yeoman及其生成器角应用程序通过scafolding设置它。我正在使用grunt服务进行测试。

I have few basic questions -

我几乎没有什么基本问题 -

  1. Is this a node application?
  2. 这是节点应用程序吗?

  3. Since this application is going to be run in two environments (like pre-production and production), is there a way in my angular app I get the details of which environment it is run?
  4. 由于这个应用程序将在两个环境中运行(如预生产和生产),我的角度应用程序中是否有一种方法可以获取运行环境的详细信息?

1 个解决方案

#1


0  

Let me try to explain

让我试着解释一下

  1. No this is a framework developed by Google team
  2. 不,这是Google团队开发的框架

  3. There are many ways and tools to do that like gulp , grunt, webpack and yes there are many ways to set the environment and to get the environment
  4. 有很多方法和工具可以做,如gulp,grunt,webpack,是的,有很多方法可以设置环境和获取环境

Try to look at any angular-seed and tutorial with tools like gulp, grunt and webpack.

尝试使用gulp,grunt和webpack等工具查看任何角度种子和教程。

#1


0  

Let me try to explain

让我试着解释一下

  1. No this is a framework developed by Google team
  2. 不,这是Google团队开发的框架

  3. There are many ways and tools to do that like gulp , grunt, webpack and yes there are many ways to set the environment and to get the environment
  4. 有很多方法和工具可以做,如gulp,grunt,webpack,是的,有很多方法可以设置环境和获取环境

Try to look at any angular-seed and tutorial with tools like gulp, grunt and webpack.

尝试使用gulp,grunt和webpack等工具查看任何角度种子和教程。

相关文章