anguar 1.5 access data in http.get without scope : i'm new here. And that's a pleasure to be with you.

I use Angular 1.5.

I can't access to my data, from the http.get, out the http.get.
Let me explain:

I have my component:

    (function(){
	'use strict';
	class myComponent {
		constructor(
			$http,
			$scope)
		{
    		var self = this;
    		self.test="this is a test";
    		$http.get(MYAPI).then(function(response){
        	self.MYDATA = response.data;
        	console.log(self.MYDATA)
      		});
      		console.log(self.test)
      		console.log(self.MYDATA)
  		}

	}
	angular.module('myApp')
	.component('myApp.test', {
		templateUrl: 'myTemplate.html',
		controller: myComponent,
		controllerAs:'vm',
	}); 
    })();

The console.Log give me:

*this is a test*  -->    for the test

*undefined*  -->    out the http.get  

*Object {id: 1…}*  -->    in the  http.get     

So i can't access to my data out the http.get and this is what i want.

Have Anyone an idee? 
Thank you.