Chapter 6 class ProfileModel doesn't have a 'then' function

Issue #3 new
Mark Oliver created an issue

Error In seach.service.ts line 53. ProfileModel export in profile.model.ts line 29.

Comments (1)

  1. Mathieu Chauvinc repo owner

    Hi @invegat

    Thank you for opening this issue. Which tag are you at when you see this issue?

    I'm referring tot he code on tag 6.1, the "currentProfile" property is actually a getter method which returns a promise (which resolves with a ProfileModel) and so it should have a .then property.

    It is a change fromhow the profile model was being handled prior to Chapter 6 though.

    Thanks!

  2. Log in to comment