Angular component: work with $http for manage http request