Display histories with Angularjs