question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

https://github.com/DeborahK/Angular-GettingStarted/blob/99ccf5bde56b257c118a99de490f68e58c2cd65a/APM-Final/src/app/products/product-list.component.ts#L23

_listFilter is the name of the property but you use listFilter in the conditional operator. Is it intentional like something i don’t know that typescript does ?

(A recap) listFilter is the name of getter and setter

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
DeborahKcommented, Sep 11, 2018

We use the getter and setter approach when we need to execute code when getting or setting the property.

In our sample application, we need to refilter the list of products each time the user modifies the list filter property. Since the listFilter is bound to the input box, it will automatically call the setter each time the user updates the input value. That is then where we add the code to filter our list.

Make sense?

0reactions
KayDeecommented, Sep 11, 2018

Yeah, totally. I’m clear now. Thanks for explaining.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Typo - Definition, Meaning & Synonyms - Vocabulary.com
A typo is a mistake in written or published writing. If you find a misspelled word or misplaced punctuation mark in this blurb,...
Read more >
Typo (Typographical Error) | What is One Example of a Typo?
Typo is short for typographical error. It is a simplistic way to say there there is a mistake when something is typed or...
Read more >
Typo Definition & Meaning - Dictionary.com
Typo is short for typographical error—a mistake made when typing something. The term typically refers to an unintentional error that happens when you ......
Read more >
word meaning - What would qualify as a typo?
A typo (short for typographic error) is a minor error of the presentation of text on the page. Omitting a space is a...
Read more >
What Is a Typo? - apilayer Blog
Most people can't. A typo is an error in the typed or printed text and is short for typographical error. For example, a...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found