3 ms·
Good post here. I'm doing similar things with Angular and Rails. For the most part jQuery gets me most of the way. In cases where I need something really com
by dham 11y ago
Good post here. I'm doing similar things with Angular and Rails. For the most part jQuery gets me most of the way. In cases where I need something really complex I just look to Angular 1.x for that one page. It works, it's easy to use(for the most part), and you actually end up writing less javascript then if you tried to do adhoc jQuery stuff.
I'm finding Turbolinks partial replacement a good option in some cases too.
The thing with not doing a traditional SPA in one Javascript framework, is you can rip out or add anything at anytime. So say in the next 30 seconds when a new Javascript framework comes out, I can use that in my Rails app. If I embraced Angular for my entire app it would be impossible to change the framework out. I've been able to play with React, Knockoutjs and others on certain parts of my app because I'm still embracing traditional navigation(with Pjax or Turbolinks)