Answer the question
In order to leave comments, you need to log in
What to read on the project structure on angularjs?
Hey!
There is a small problem: I made one test project on angularjs. Before that, I never touched it, but I worked with backbone, marionette.
I read the tutorial on metanit.com, some documentation, well, I did it. I was told that I did not use angular to its full potential and there are questions about the project structure (what exactly is wrong - they did not specify).
Can you tell me what's wrong: https://github.com/panay/searchStackOverflow ?
And what to read in order to properly organize the code in angular and generally use it competently?
UPD:
I read the guides, redid the project. Not quite yet, but I'm getting there.
Website on heroku
Source code on github
Useful links I dug up along the way:
1) The main styleguide that was advised
2) Understanding service types
3) Directives
Answer the question
In order to leave comments, you need to log in
You can read it here
From what I saw briefly:
- Directives were not used (components since version 1.5)
- Controller as syntax was not used
- It is better to use ui-router instead of a regular router
- It is customary to transfer Ajax manipulations to services
- Well, little things (getting data is better do at the routing stage)
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question