Friday, December 27, 2019

Re: angular setup for django (routes not working)

you doing something strange.
usually, when you want to setup angluar with django, you just using `ng serve` to handle all the interface, and just use django for data and api. it's not a good idea to render angular app with django

On Thursday, December 26, 2019 at 4:05:14 PM UTC+3, nitish kumar wrote:
Hi 


I am trying to integrate angular8 with Django (2.2.4).


Django side:

URL and view will load angular 'index.html'

angular:

some router-links.
based on URL pattern page is getting loaded.


problem statement:

if host only angular code using 'ng serve' router-link only load's particular component instead of loading all links in the index.html file
but when I host in Django router-link is loading the entire page again (i can see this in developers tools network tab)

can some please help..

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/b312fb36-f64b-4047-ba12-8f34867e369d%40googlegroups.com.

No comments:

Post a Comment