As I delved into an existing Angular project, I couldn't help but notice that the HTML files contained no trace of Angular code.
<div id="chat">
<div data-id="6863" data-name="patrik.valkovic"></div>
</div>
Instead, only Bootstrap was being utilized:
angular.bootstrap(document.getElementById('chat'), ['drahak.chat'])
The run method in the module solely executed a GET request and established a connection to a socket:
drahak.chat.run([
'Socket', '$http', 'host', 'port', function (Socket, $http, host, port) {
$http.get('http://' + host.slice(5) + ':' + port + '/config')
.then(function (config) {
return drahak.chat.emoticons = config.data.emoticons;
});
return Socket.on('events:batch', EventsBatchCallback);
}
]);
Surprisingly, upon visiting the site, it appeared to generate a whole template from a separate file. Is this the work of Angular or is there hidden code somewhere else?
EDIT: It seems like routes are not in use.