This is a very good question!
I started with the book "AngularJS Pro" which also has a good example in it. But it is a very simple example where the app only has one controller. And many conceptual questions arising from a bigger "real world app" are not handled.
At the moment I am writing a app in angularJS (management web UI forhttp://privacyidea.org, a two factor authentication system) and I am wondering many things as far as concepts are concerned.
I am using REST and JWT for authentication. How should I add those to my REST calls. I suppose I should either created services or resources to encapsulate the REST calls.
I am realizing there are information I need throughout the app.
How should I stack/inherit the controllers. Or should I rather use app-wide services instead of putting functionality into the controller.
I hope I will be able to release the first version in about two weeks.
I will publish a link with the (probably inline) explanations/docs.
signature.asc
Yes, these are exactly the type of questions I have.
The first app I have created is admittedly a little complicated as it's a google maps based application but I am having trouble understanding when to use multiple controllers, why I would separate code into multiple controllers, how those controllers communicate with each other, deciding on whether to place code in directives or controllers, again communicating between the two, interacting with REST api and all the above etc. etc.
It would be great to see a moderately complex application in motion and learn why things are where they are.
Have you seen this yet?
It is my collection of everything I've learned about Angular over the past nine months in a single page. It includes all the examples, tutorials, demos, generators and seeds I've seen so far, as well as all the best practice recommendations, approaches, and libraries. It clarifies the hundreds of programming concepts by saying what's a type of what, what's an alternative to what, what each concept is and why it's good or bad. It quantifies the value of each alternative starting point using my own personal subjective value assignments but that's a lot better than nothing. It has hundreds of links to deeper explanations of things wherever they're needed.
If you're curious which one I like best, at the moment I am trying to combine the beautiful front-end code of the Angular Slim template from wrapbootstrap with the full-stack stuff in MEAN.js because each of these things is sorely lacking what the other offers.
And it's been painful.
I haven't run this up, but I have been using the excellent book it is described in as one of my own main sources, so it could be worth examination.
https://github.com/angular-
This is from 'Mastering Web Development in Angular-JS'
Three I've heard of.
1) TODO sample
There is of course the TODO sample which is used to compare frameworks, not sure its up to date.
2) Angello (forthcoming)
This is a similar application to the excellent 'Trello' which I use for my kanban
However this is the sample application being put together for the AngularJS in Action. So it is not yet available as the book has not yet been released.
I have the MEAP release of the book, but the github URL provided is either incorrect or not yet in use. One to watch for.
3) A complex full stack SCRUM web app
Update, here is the angello example. No idea how developed this is, as the book isn't completed.
댓글 없음:
댓글 쓰기