Currently I am trying to migrate an existing Knockout application to Angular MEAN stack application. In the knockout, the index.html contains this code
<% layout('layout') -%>
<div data-bind="ifnot: id">
<%- partial('partials/invitation-creating.html') %>
</div>
<div data-bind="if: id">
<%- partial('partials/invitation-done.html') %>
</div>
How can I achieve this kind of partial html file loading with-in Angular route with single controller (or) multiple controllers. After saving the 'invitation-creating.html' page, I should be able to go to 'invitation-done.html' but url should be the same ( I do NOT want this -> websiteurl/invitation_id)
See that in action http://invitify.azurewebsites.net, when you create an invitation then it will take you to the next page (invitation-done.html) without browser changing it's url. This was achieved in knockout but I want to achieve the same effect in my Angular app too. The Knockout code is here on github for you to see more closely. https://github.com/scriptstar/KOInvitify
What is the best practice to achieve this type of behavior in Angular application.
Please help. Thanks.