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.

**I want to build an angular Js Application in which I want to use Angular Js for front end and REST API for back-end data please give me suggestions for directory structure **

share|improve this question

2 Answers 2

You can find multiple ways of structuring your project on the world wide web. This is one out of the millions examples out there. Try searching for 'best way to structure your Angular project'.

You can also find a more detailed explanation on this link: https://scotch.io/tutorials/angularjs-best-practices-directory-structure

share|improve this answer

I suggest creating angular services for consuming your REST API, which will in turn be injected in your controllers. For your directory structure I suggest one directory per module. For example :

-- navigation navigationCtrl.js navigationService.js

-- search searchService.js

share|improve this answer

Your Answer

 
discard

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.