Skip to content

ERROR in src/app/courses/course/course.component.html:7:42 - error TS2339: Property 'loading$' does not exist on type 'CourseComponent'. #7

Description

@aditiC

Hello Team,

I recently have enrolled to the course of NgRx. I am a student and new to the Angular, so exploring new things. I observed following error while executing the code 1-start, I downloaded the code through zip.

I think we should add loading$: Observable<boolean> in CourseComponent class. I tried this at my end and it worked.

ERROR in src/app/courses/course/course.component.html:7:42 - error TS2339: Property 'loading$' does not exist on type 'CourseComponent'.

7   <div class="spinner-container" *ngIf="(loading$ | async )">
                                           ~~~~~~~~

  src/app/courses/course/course.component.ts:12:16
    12   templateUrl: './course.component.html',
                      ~~~~~~~~~~~~~~~~~~~~~~~~~
    Error occurs in the template of component CourseComponent.

Kindly give suggestions on this.

Thank you,
Aditi

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions