Skip to content

self.context.search is undefined #3

Description

@ilosuna

Error in angular2-tutorial/04-expressions/src/app/app.component.ts:

EXCEPTION: Error in ./AppComponent class AppComponent - inline template:5:8 caused by: self.context.search is undefined

{{search.toUpperCase() + "!"}} should now be {{ search + "!" | uppercase }}. Not sure about search.length.

EDIT:
There must be a question mark after search: {{ search?.length || 0 }}

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