fixed bug with Angular route resolving and initial data. added documentation