lundi 20 avril 2015

Using Angular Directives to Replace Bootstrap Class Assignment with HTML Tags

I can see that this was an AngularUI discussion at one point...

I'm wondering if anyone else has implemented Angular directives that would allow me to replace traditional Bootstrap laden markup

<div class="container-fluid">
  <div class="row-fluid">
    <div class="span4 offset2">

with easier-to-read, element focused, markup similar to

<container fluid>
    <column width=4 skip=2>
</container fluid>

Seems like it would be easy enough to implement, which makes me think that someone else has done this already (or that it's not worth it for some reason (maybe there's a performance hit?))

Any thoughts?

Aucun commentaire:

Enregistrer un commentaire