-1
Because in console.log(x) the terminal shows me the array and in console.log("Categories: " + this.Categories) it shows me Undefined?
buildCategories() {
    const teste = this.categoriesService.read();
    teste.subscribe(x => {
        this.categories = x;
        console.log(x);
    }
        );
    console.log("Categories: " + this.categories);
}
						
He prints the x in the first log, pq vc is printing exactly x. In the second log you are printing a variable that theoretically has x as value.
– LeAndrade
But I assigned the value of x to the Categories variable or I did wrong?
– Mozelli
X is a right array? The variable Categories, is of type array??!
– LeAndrade