I am new to angular and I need someone to point me in the right direction preventing me from learning bad angular practices. I know there are similar questions around but I could not find the general answer I am looking for.
- it looks like the majority of companies are not switching to angular 2 and keep using angular 1.x so I have decided to learn angular 1.5. is this a wise decision?
I saw two approaches to folder structure. The first one looks like the following:
routes are defined using the ngRoute method, the services folder contain the REST services and data hosts JSON objects used by the UI. Views contain the html files names according to the relevant URL addresses. In this example the REST services are called in the routes making data available by the time the DOM is ready
the other approach I have seen is this one:

in this one routing is done using UI-Router and the routes are defined in the states.js file. Views and controller are then put together a folder inside the routes folder.
My question is which approach follows the best practices. Also I understand that angular 1.5 introduces components. Do they require a totally different structure or do they integrate with the above.
Thank you for your help.
