Thursday, December 26, 2019

angular setup for django (routes not working)

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/a6616a4c-88a2-4211-a23f-a2fb14db37c3%40googlegroups.com.

No comments:

Post a Comment