Hi.

Say you should style som button or alert based on a alert Level one could 
do something like

<div class="alert alert-{{alert.alertLevel}}" role="alert">...</div>

where alert.alertlevel could be one of success, info, warning, danger 
(which correlates well With Bootstrap classes)


Is it possible to use this interpolation in Element Directives the same 
way? Say you have created Three different Directives like 

<myapp-customertype-earth>
<myapp-customertype-wind>
<myapp-customertype-fire>

Would it be possible to dynamically Call one of this templates like:

<div id=container ...>

<myapp-customertype-{{customer.type}}>

</div>

where type of course is one of Earth, Wind, fire?

-- 
You received this message because you are subscribed to the Google Groups 
"Angular and AngularJS discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply via email to