@wycats why does Yehuda do AngularJS? Out of curiosity :)
-
-
-
@kaliaparijat I don't. I like to understand how everyone does things. There are good ideas everywhere. -
@wycats that deserved a retweet :)
End of conversation
New conversation -
-
-
@wycats how about this? http://jsbin.com/ihUGOcI/1/edit -
-
-
@wycats@tonywok If you're forcing the fetch to resolve before the view is loaded then yeah. I would suggest this http://jsbin.com/ixAheJU/1/edit#yolo …
End of conversation
New conversation -
-
-
@wycats Same model or different? Also, SPA or server side navigation? -
@jeffwhelpley Different model. SPA. -
@wycats I don't claim to know everything about AngularJS, but I threw together a gist with my thoughts: http://gist.github.com/jeffwhelpley/6865807 … -
@wycats but fyi as far as true idiomatic code, I don't think there truly is a best practice that everyone follows just yet.
End of conversation
New conversation -
-
-
@wycats It's non-core, but https://github.com/angular-ui/ui-router/wiki#resolve … is by far the best way I've found.Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
@wycats That said, the "most" idiomatic way is this: https://gist.github.com/janv/6863440Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
@wycats That’s a restrictive concept that does not immediately apply to Angular, thus it’s hard to find an „idiomatic“ way.Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
@wycats The questions phrasing presumes there’s some kind of natural 1:1 association between a „page“ and „a model“!?Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
@wycats To what end? Reuse of the same model on both SPA views, or diff model? If same, then load the model on the root scope.Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
@wycats as was mentioned , ui-router, as well as regular ngRoute has 'resolve' property: http://docs.angularjs.org/api/ngRoute.$route … Demo: http://jsfiddle.net/pWKhD/Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
@wycats forget Angular. CoccyJS makes that easy! http://coccyxjs.jitsu.comThanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
@wycats the only thing I can tell angular developers agree on is that the documentation is terrible.Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
@wycats hahaha — I think the answer to this is no. I've been doing angular for $ recently and I find no indication there are "idioms".Thanks. Twitter will use this to make your timeline better. UndoUndo
-
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.