Base solution for your next web application
Starts in:
01 DAYS
01 HRS
01 MIN
01 SEC
Open Closed

Need advice on constants #984


User avatar
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)
  • User Avatar
    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).