- Joined
- Jun 21, 2010
- Messages
- 324
- Reaction score
- 54
Hello!
I'm in the progress of working on a HabboCMS. I'm trying to replicate the HabboCMS the best I can in every possible aspect.
I don't know anything about Angular or the way it works Apart from knowing it generates the content on the site through templates. I also know that AngularJS is caching the entire site within the two js files (vendor, scripts) so it doesn't have to keep fetching the template files all the time. Which is why the structure of the pages (html) is loading without having to be connected to the net (with the exception of refreshing the DOM)
Anyone here familiar with AngularJS that is able to explain how Habbo have implemented it?
For example. In the scripts.js on Habbo.com, there is templateUrl for each module. That URL is obviously grabbing a template from somewhere, but what is it relative too. Does AngularJS have a variable stating a baseURL or something like that? I have spent hours on it and I can't find anything that is loading these template files.
Can AngularJS or would AngularJS be setup to grab these templates from outside the website directory tree?
I'm just really curious as to how AngularJS is working!
Thanks!
I'm in the progress of working on a HabboCMS. I'm trying to replicate the HabboCMS the best I can in every possible aspect.
I don't know anything about Angular or the way it works Apart from knowing it generates the content on the site through templates. I also know that AngularJS is caching the entire site within the two js files (vendor, scripts) so it doesn't have to keep fetching the template files all the time. Which is why the structure of the pages (html) is loading without having to be connected to the net (with the exception of refreshing the DOM)
Anyone here familiar with AngularJS that is able to explain how Habbo have implemented it?
For example. In the scripts.js on Habbo.com, there is templateUrl for each module. That URL is obviously grabbing a template from somewhere, but what is it relative too. Does AngularJS have a variable stating a baseURL or something like that? I have spent hours on it and I can't find anything that is loading these template files.
Can AngularJS or would AngularJS be setup to grab these templates from outside the website directory tree?
I'm just really curious as to how AngularJS is working!
Thanks!