Try out the following jsFiddle: http://jsfiddle.net/lu4x/fuhvM/13/
Вівторок, 12 лютого 2013 р. 20:39:11 UTC+2 користувач José Rodolfo Freitas написав: > > Thanks for your attention Pawel, I got your point. You're probably right. > And it'll be my pleasure to contribute the select component back to > angularUI. > > Still, abstracting my main objective and the way of reaching it, I still > don't have clear answers for my two initial problems. > > 1) when/how can I safely initialize the bootstrap component after loading > the collection > 2) How can I map ng-model attribute from my directive element to my html > template? > > Thanks, > José > > On Tuesday, February 12, 2013 4:18:10 PM UTC-2, Pawel Kozlowski wrote: >> >> Hi! >> >> I was definitively not suggesting that we should be messing with >> <select> and <options> HTML tags but rather create a new directive, >> something like <bs-select> that would generate target markup. >> >> While your question is definitively valid my experience so far is that >> I was spending waaayyyy more time wrapping existing plugins as >> compared to re-doing them in AngularJS. I'm not saying we should >> re-develop every widget on earth but for simple one like those we can >> get better results faster this way. >> >> I've been down the "wrapping" route several times and the result was a >> lot of time wasted for mediocre results. Maybe it is my lack of skill. >> Thought I will share those observations. >> >> Cheers, >> Pawel >> >> On Tue, Feb 12, 2013 at 7:12 PM, José Rodolfo Freitas >> <[email protected]> wrote: >> > Yes it's wasteful, but the idea is to have more flexibility to work >> with the >> > select appearence, which afaik, natively is very limited. >> > >> > Yet, even if this bootstrap plugin is not the best solution of all, I >> think >> > my question is still valid, no? >> > I'm looking at $watch function, but I'm not sure what I should be >> watching >> > to, could it be somehow the element.children()? I've tried that but >> perhaps >> > I'm doing something wrong. >> >> >> >> >> -- >> Looking for bootstrap-based widget library for AngularJS? >> http://angular-ui.github.com/bootstrap/ >> > -- 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 [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/angular. For more options, visit https://groups.google.com/groups/opt_out.
