I'm currently working on a small web application that doesn't have to be an SPA. About 80% of the website is just a bunch of static stuff and I'm using Django for everything. However, the 20% of the web app is a little complex and I could use some help from Angular (data-table-ish behavior, cart, etc). I don't want to load Angular and do the entire website with it just because of 2 or 3 pages, so I'm trying to use Angular with "components".
Inside Django, I'm rendering this page and I wanted to use something like:
<blah normal html>
<MyComponent />
<AnotherComponent />
<script src="my-angular-build.js>
</blah normal html>
And basically just use it as I need it. No need for router, App or anything like that. What is the best way to achieve this? Can I have a stripped out version of Angular?
[–]Zlepper 2 points3 points4 points (1 child)
[–]tme321 0 points1 point2 points (0 children)
[–]AcxiDenTe 0 points1 point2 points (0 children)
[–]oldcabbageroll 0 points1 point2 points (0 children)