Take the 2-minute tour ×
Stack Overflow is a question and answer site for professional and enthusiast programmers. It's 100% free, no registration required.

Folks, I am willing to create a user interface that will work with any storage server that exposes them over REST api. Here is more detail and challenge faced :

A configuration file resides somewhere on cloud, that will define domain entities and their schema. Angular JS application should read this configuration and generate menu items for each of them. Example : If "employees" is defined in config, then there should be a menu item, which when clicked should populate ng-view with data fetched from Rest API : GET http://remote_url/employees.

Question : Is there a way to read config on client side and generate menu items and controllers for these click events? I have play application on server side and angular js on client side. I am planning to keep a configuration file on server.

Edit : On doing more research - I think we can have a angular service that fetches config from server. This config must be accessible inside a controller, which in turn can be used in views to populate Menu items and associating actions. Any plunker available on similar lines ?

share|improve this question

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.