Skip to content

Error in https://angular.io/tutorial/toh-pt6 #42113

Closed

Description

@easybreather

Docs or angular.io Bug Report

  • checked for relevant reports, nothing apparently related...

Description

In the Tour of Heroes demo, pt6, https://angular.io/tutorial/toh-pt6
Hereo-Search Component

...
export class HeroSearchComponent implements OnInit {
heroes$: Observable<Hero[]>;
private searchTerms = new Subject();

constructor(private heroService: HeroService) {}
...

This-> heroes$: Observable<Hero[]>; generates

Build at: 2021-05-16T09:59:31.630Z - Hash: a7c9271139b046466154 - Time: 328ms

Error: src/app/hero-search/hero-search.component.ts:17:3 - error TS2564: Property 'heroes$' has no initializer and is not definitely assigned in the constructor.

17 heroes$: Observable<Hero[]>;

Solution: heroes$!: Observable<Hero[]>;

Your Environment

latest (v12) npm setup

Browser info

n/a

Anything else relevant?

no idea - am learning angular

Activity

  1. JoostK commented on May 16, 2021

    @JoostK
    Member

    This is being addressed in #41999.

  2. added this to the needsTriage milestone on May 16, 2021
  3. JoostK commented on May 17, 2021

    @JoostK
    Member

    Closing this as #41999 was merged.

  4. angular-automatic-lock-bot commented on Jun 17, 2021

    @angular-automatic-lock-bot

    This issue has been automatically locked due to inactivity.
    Please file a new issue if you are encountering a similar or related problem.

    Read more about our automatic conversation locking policy.

    This action has been performed automatically by a bot.

  5. locked and limited conversation to collaborators on Jun 17, 2021
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

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions