4 ms·
On a recent project I used pjax, because it was way simpler to figure out what the heck was going on, and it did not have a bunch of extra stuff that was diffic
by davidw 13y ago
On a recent project I used pjax, because it was way simpler to figure out what the heck was going on, and it did not have a bunch of extra stuff that was difficult.
Angular seemed very nice - until I tried to do something that it did not foresee and... wow... things get complicated really fast when you do that.
- warfangle 13y agoI've found that when Angular starts to fight back, you need to rethink your assumptions. It's very opinionated.
- lucidrains 13y agoWhat were you trying to do?
- davidw 13y agohttp://www.grobmeier.de/angular-js-binding-to-jquery-ui-datepicker-example-07092012.html#.UfgP0cX2UgQ http://www.grobmeier.de/angular-js-binding-to-jquery-ui-date... Sums up what I wanted to do. I think in this particular instance things have moved on and it may be easy these days, but thinking about what would have happened if I'd had to figure out that code myself, I could envision spending a day or two figuring out how to add something that is a one-liner in jQuery. It made me nervous about "unknown unknowns", too, whereas pjax is pretty easy to reason about.
- grobmeier 13y agoFunny to see my own blog post as a reference here, thank you. On topic, it actually took me a while to figure out how it works. But now I understood it and similar problems later were solved in no time. That said I think you need a while to really learn AngularJS before you should use it in your product. If you don't have the time then you might have a problem. You don't need to learn about the internals, which is good, but you definitely need to learn the core concepts.
- warfangle 13y agoAhh. Gluing a jquery plugin into an angular app will always be hairy. You may have been able to pick apart angular-ui to include only their datepicker directive. Mixing jQuery and Angular just seems like a bad idea, to me...
- steveklabnik 13y agoDid you consider turbolinks as well as pjax? Not together, of course, I mean in addition to while evaluating what to use.