16.07.2017 Views

AngularJS Essentials

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Table of Contents<br />

The ngIf directive 31<br />

The ngInclude directive 31<br />

Refactoring application organization 32<br />

Creating our own directives 34<br />

template 35<br />

templateUrl 36<br />

replace 36<br />

restrict 37<br />

scope 38<br />

transclude 42<br />

link 43<br />

require 44<br />

controller 46<br />

compile 47<br />

Animation 48<br />

How it works? 48<br />

Animating ngRepeat 49<br />

Animating ngHide 50<br />

Animating ngClass 50<br />

Summary 51<br />

Chapter 3: Data Handling 53<br />

Expressions 53<br />

Filters 55<br />

Basic usage with expressions 55<br />

currency 55<br />

date 56<br />

filter 56<br />

json 57<br />

limitTo 58<br />

lowercase 58<br />

number 58<br />

orderBy 59<br />

uppercase 60<br />

Using filters in other places 60<br />

Creating filters 61<br />

Form validation 62<br />

Creating our first form 62<br />

Basic validation 63<br />

Understanding the $pristine and $dirty properties 65<br />

The $error object 65<br />

Summary 66<br />

[ ii ]<br />

www.it-ebooks.info

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

Saved successfully!

Ooh no, something went wrong!