Anguloso is a HTTPInterceptor for AngularJS. It renders basic information about ajax requests.
========
##How Anguloso works
It intercepts every request and response from Angular $http service. Then, using jQuery, it renders lines for usefull debugging.
##I want to use it!!
- Anguloso can be used like a bower_component. So, first of all you need to declare it as a component in bower.json
{ "dependencies": {"anguloso2" : "master"} }
- Insert Anguloso as a module of your AngularAPP.
var yourApp = angular.module('yourApp', ['anguloso']);
- Include angulosoInterceptor as httpInterceptor
$httpProvider.interceptors.push('angulosoInterceptor');
- Voilà
##Depends on
- AngularJS
- jQuery
- Bootstrap 3
========
/** * Works by GOD LAWs * */ void rotate() { Vector3 target = rigidbody.velocity; float angle = Mathf.Atan2(target.y, target.x) * Mathf.Rad2Deg; // rotate to angle Quaternion rotation = new Quaternion(); rotation.eulerAngles = new Vector3(0, 0, angle - 90); transform.rotation = rotation; }