You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Do not know what you are trying, but we are initialising search as a string with a value, so this.search or {{search}} is defined in any case --> if you remove all chars in the input field the string is an empty string ... so no problems at all?
Maybe you can show us your complete component and template?
Error in angular2-tutorial/04-expressions/src/app/app.component.ts:
{{search.toUpperCase() + "!"}}
should now be{{ search + "!" | uppercase }}
. Not sure aboutsearch.length
.EDIT:
There must be a question mark after
search
:{{ search?.length || 0 }}
The text was updated successfully, but these errors were encountered: