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.

Creating Reusable Components with Directives<br />

Refactoring application organization<br />

As long as our application grows with the creation of new components such as<br />

directives, the organization of the code needs to evolve. As we saw in the Organizing<br />

the code section in Chapter 1, Getting Started with <strong>AngularJS</strong>, we used the inline style;<br />

however, now we will use the stereotyped style, as shown in the following code:<br />

index.html<br />

<br />

<br />

<br />

[Packt] Parking<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

Plate<br />

Color<br />

Entrance<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

[ 32 ]<br />

www.it-ebooks.info

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

Saved successfully!

Ooh no, something went wrong!