It's Angular routing,
You can use ng-include for a static "template" file, and use routing for the rest of the web pages. Be sure to invest time learning how ng-if works and ng-show, etc. Angular is putting the stress on the client so the end website only has to send JSON data to the client and nothing more. All files used must be inside your root folder, so for you
htdocs:/ index.html
htdocs:/public/views/home.html
and for folder structure store angular code like
htdocs:/assets/js/angular-min.js
htdocs:/assets/js/controllers/homeController.js
I would advise learning Angular 2 as it's dramatically different (but better)
Edit
Do not attempt to copy Habbo's implementation of it, but work within your own implementation as you go on. It will make it a lot easier when designing an API, and keeping your app code clean.
For a tutorial,
https://scotch.io/tutorials/routing-...mponent-router