AngularJS modularity and configuration

38 Views Asked by At

I have a feature that has controllers, services, and templates in it which I want to use in two separate projects. I've put template and controller names into a constant so I can change if I need. It works almost perfect.

However, in a view, I need to get options of a ui-select differently in these projects. It will be an array from $rootScope in both of them but comes from different variables. I think I cannot use constant, so what can I use?

0

There are 0 best solutions below