1👍
I found the solution with the help of my teammate. The reason for this issue is Django and angular uses same syntax for template variable. So when DJango sends the page, it searches for all variable with {{}} braces and replaces it with the django view variable.
In our case, django doesn’t understand the variable defined in angular and replaces it with blank.
SO here are to solutions for this. To use the angular variable in template we need to sue verbatim block. Django will not replace anything under this block.
Syntax is: {% verbatim %}jj{{usernameOne}} {% endverbatim %}
All variable in verbatim block will be treated as angular variable.
Source:stackexchange.com