Open Closed

Need advice on constants #984


0
easyest created

Let's say in the application there will be lot's of drop-downs with values Yes/No, so I think it would be good to put such an object somewhere for angular's select to use. There are two ways I can do that - angular constants (using appModule.constant) and global javascript variables (in \Common\Scripts). Using first way, I will need to inject it to my controller, using the second one - no need for that. What would You suggest?


1 Answer(s)
  • 0
    hikalkan created
    Support Team

    I suggest the second way. Because, you may need it beside your angular application (for example, in the front end web site).