Beruflich Dokumente
Kultur Dokumente
JS
Level 2: Filters, Directives, and Cleaner Code
$2
index.html
$2.00
{{ data* | filter:options* }}
12/27/2013 @ 12:50AM
limitTo
{{'My Description' | limitTo:8}}
OCTAGON GEM
My Descr
orderBy
Image Object
{{product.images[0].full}}
app.js
NG-SOURCE
to the rescue!
Challenges
index.html
nav-pills>
ng-click="tab = 1">Description</a> </li>
ng-click="tab = 2">Specifications</a> </li>
ng-click="tab = 3">Reviews</a> </li>
index.html
. . .
<div class="panel">
<h4>Description</h4>
<p>{{product.description}}</p>
</div>
<div class="panel">
<h4>Specifications</h4>
<blockquote>None yet</blockquote>
</div>
<div class="panel">
<h4>Reviews</h4>
<blockquote>None yet</blockquote>
</div>
index.html
index.html
Expression to evaluate
If true, set class to active,
otherwise nothing.
index.html
index.html
});
index.html
app.js
this.tab = 1;
});
index.html
app.js
};
index.html
});
app.js
};
});
index.html
app.js
Challenges