Check out example codes for "how to use grepper chrome extension". It will help you in understanding the concepts better.
Code Example 1
how to add ngClass in agular
Code Example 2
# Add an answer to Grepper by google searching a problem # Then clicking the "Add Grepper Answer" link at the top # of your search result, or clicking (a) on your keyboard # You can also add an answer by doing a google search # clicking into a search result and typing Ctrl-g or Command-g # on Mac. If there is a code snippet on the web page, you will # see the "Easy Code Snag" button and you can click that # to add an answer.
Learn ReactJs, React Native from akashmittal.com