Node.js By Example by Tsonev Krasimir

Node.js By Example by Tsonev Krasimir

Author:Tsonev, Krasimir
Language: eng
Format: epub
Publisher: Packt Publishing
Published: 2015-05-27T16:00:00+00:00


The header and the navigation sections stay untouched. We have a nicely placed title at the top followed by the form that we mentioned. If the loading flag has true as a value, we display the Loading. Please wait. message. If we are not in the process of querying the backend, then we show the input field and the button. The following screenshot demonstrates how this looks in practice:

The next part of the template renders the users sent by the backend. It shows their name and a Add as a friend button. We will see a screenshot of this view in the pages that follow.

The last part of the HTML markup is for the conditional displaying of a message. If we set a value to the message variable, then Ractive.js reveals the div element and makes our text visible.



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.