2 ms·
I still work on a Django monolith and agree on being able to focus 100% on business logic. I've found Angular is excellent for "sprinkling" a little JS into the
by globular-toast 4y ago
I still work on a Django monolith and agree on being able to focus 100% on business logic. I've found Angular is excellent for "sprinkling" a little JS into the frontend where necessary rather than going the full SPA/React route.
- nakatu 4y agoHow is Angular adding just a sprinkle of js to your web app? Isn't the ouput of building an Angular app a full SPA?
- globular-toast 4y agoI am using the "original" angular-js, not the newer Angular whatever version it is now. It's not a full SPA. I just include angular.js and put the ng stuff in my HTML. Maybe the new Angular is different?
- ornornor 4y agoYes, angular 2 (which means anything after angularJS) is a full on SPA just like react is. I think stimulus is more like angularJS. But modern angular definitely isn’t.
- robben1234 4y agoI worked on multiple Django monolith projects in the past years where parts of it with heavy client-side logic were offloaded to tiny Vue.js applications injected into the html template. If data requires reloads or manipulations a side restful api needs to be created along the main endpoint which renders html. But it's fairly straightforward with DRF and the enforced by default apps/models structure of Django. Until a certain point I find this arrangement enjoyable to work with. Once it stops, it's clear as day that the page should be rewritten from scratch with rendering on client side.
- alephu5 4y agoHave you tried htmlx? It fits this gap quite nicely, it's lets you do AJAX with SSR.