16.07.2017 Views

AngularJS Essentials

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Data Handling<br />

Most applications demand an intense development effort in order to provide a better<br />

interaction with its users. Bringing simplicity and usability is a huge challenge, and<br />

as our world is changing at the speed of the light, we must rely on a technology<br />

that really allows us to achieve this mission with the least amount of code and<br />

pain possible.<br />

In terms of data handling, <strong>AngularJS</strong> offers a complete set of technologies that<br />

are capable of accomplishing any challenge related to presenting, transforming,<br />

synchronizing, and validating data on the user's interface. All this comes with a<br />

very simple syntax that can radically shorten the learning curve.<br />

In this chapter, we will talk about data handling using <strong>AngularJS</strong>. The following<br />

topics will be covered in this chapter:<br />

• Expressions<br />

• Filters<br />

• Form validation<br />

Expressions<br />

An expression is a simple piece of code that will be evaluated by the framework<br />

and can be written between double curly brackets, for example, {{car.plate}}.<br />

This way of writing expressions is known as interpolation and allows you to easily<br />

interact with anything from the scope.<br />

www.it-ebooks.info

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!