Hi!
On Fri, Jan 4, 2013 at 9:46 PM, Joshua Miller <
jo...@joshdmiller.com> wrote:
> but one of the things I love so very much about angular is how insanely
> simple something like this is to implement as a directive.
+1 Joshua!
I can constantly see people spending hours and hours to wrap existing
jQuery plugins (of a various quality) where a AngularJS-native
solution can be done in 1h and in 1/10 of the code.
I'm not saying that everything should be re-written as a native
AngularJS directive but it is often easier & faster to write a
directive using the markup as inspiration. In this example the
mentioned plugin has 350+ lines of (untested?) code and requires
jQuery dependency while the AngularJS alternative is so much smaller.
@Joshua if you feel like writing some more AngularJS-native directives
would be awesome to have you contributing to
http://angular-ui.github.com/bootstrap/ where we are trying to have
pure-AngularJS directives for Twitter's bootstrap.
Cheers,
Pawel
--
Question? Send a fiddle
(
http://jsfiddle.net/pkozlowski_opensource/Q2NpJ/) or a plunk
(
http://plnkr.co/)
Need help with jsFiddle? Check this:
http://pkozlowskios.wordpress.com/2012/08/12/using-jsfiddle-with-angularjs/
Looking for UI widget library for AngularJS? Here you go:
http://angular-ui.github.com/