Hi!
So, there is one idea we've been pushing as part of
AngularUI/bootstrap I would like to share here. So, we've started
http://angular-ui.github.com/bootstrap/ as a set of native AngularJS
directives (means no dependency on any 3rd party JavaScript: jQuey,
Bootstrap JS etc.). On top of this we try to write those directives in
the way that directive's logic is decoupled from directives
presentation. We try to encapsulate markup manipulation and CSS in
directives templates.
What it means that in the mid-term it should be possible to use all
those directives with any CSS framework! We are not 100% there yet but
it is close.
As an example let's take the pagination directive (principles are the
same for others). Here is bootstrap's version of it:
http://plnkr.co/edit/yc7s6z?p=preview but we can see that template is
externalized (
https://github.com/angular-ui/bootstrap/blob/master/template/pagination/pagination.html)
and could be swapped for the Zurb Foundation-specific version.
Here is the proof (Foundation version of a template, directive wasn't
modified!):
http://plnkr.co/edit/J5E5Am?p=preview
I hope that in the longer term we will have a set of native AngularJS
directives (JavaScript) and different sets of templates for different
CSS frameworks. We are starting with the Bootstrap version (as it is
the most popular one atm) but the vision is to work with any markup
and CSS.
@Dan and others, if the above makes sense for you it would be awesome
if we could join efforts in providing set of templates specific to
Zurb Foundation. Several people expressed already interest in it and I
believe that we could have something working pretty fast!
Cheers,
Pawel
> --
> You received this message because you are subscribed to the Google Groups
> "AngularJS" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to
angular+u...@googlegroups.com.
> To post to this group, send email to
ang...@googlegroups.com.
> Visit this group at
http://groups.google.com/group/angular?hl=en-US.
> For more options, visit
https://groups.google.com/groups/opt_out.
>
>
--
Looking for bootstrap-based widget library for AngularJS?
http://angular-ui.github.com/bootstrap/