Async promisse function returns Null in Angular [duplicate] I’m with an problem in this function promisse, when I atributted for variable, it’s null: the variable availableQuantity it’s null. I need quantity for fill the field of reactive form can you help me?